浏览代码

Fix line glow and highlights

sebavan 6 年之前
父节点
当前提交
d554263264
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/Materials/shaderMaterial.ts

+ 12 - 0
src/Materials/shaderMaterial.ts

@@ -3,6 +3,7 @@ import { Scene } from "../scene";
 import { Matrix, Vector3, Vector2, Color3, Color4, Vector4 } from "../Maths/math";
 import { AbstractMesh } from "../Meshes/abstractMesh";
 import { Mesh } from "../Meshes/mesh";
+import { BaseSubMesh } from "../Meshes/subMesh";
 import { VertexBuffer } from "../Meshes/buffer";
 import { BaseTexture } from "../Materials/Textures/baseTexture";
 import { Texture } from "../Materials/Textures/texture";
@@ -378,6 +379,17 @@ export class ShaderMaterial extends Material {
     }
 
     /**
+     * Specifies that the submesh is ready to be used
+     * @param mesh defines the mesh to check
+     * @param subMesh defines which submesh to check
+     * @param useInstances specifies that instances should be used
+     * @returns a boolean indicating that the submesh is ready or not
+     */
+    public isReadyForSubMesh(mesh: AbstractMesh, subMesh: BaseSubMesh, useInstances?: boolean): boolean {
+        return this.isReady(mesh, useInstances);
+    }
+
+    /**
      * Checks if the material is ready to render the requested mesh
      * @param mesh Define the mesh to render
      * @param useInstances Define whether or not the material is used with instances