浏览代码

MaterialHelper Documentation Shoudl be ok

sebastien 7 年之前
父节点
当前提交
8edad06cb9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Materials/babylon.materialHelper.ts

+ 2 - 1
src/Materials/babylon.materialHelper.ts

@@ -116,6 +116,7 @@ module BABYLON {
          * @param useBones Precise whether bones should be used or not (override mesh info)
          * @param useMorphTargets Precise whether morph targets should be used or not (override mesh info)
          * @param useVertexAlpha Precise whether vertex alpha should be used or not (override mesh info)
+         * @returns false if defines are considered not dirty and have not been checked
          */
         public static PrepareDefinesForAttributes(mesh: AbstractMesh, defines: any, useVertexColor: boolean, useBones: boolean, useMorphTargets = false, useVertexAlpha = true): boolean {
             if (!defines._areAttributesDirty && defines._needNormals === defines._normals && defines._needUVs === defines._uvs) {
@@ -548,7 +549,7 @@ module BABYLON {
 
         /**
          * Binds the morph targets information from the mesh to the effect.
-         * @param mesh The mesh we are binding the information to render 
+         * @param abstractMesh The mesh we are binding the information to render 
          * @param effect The effect we are binding the data to
          */
         public static BindMorphTargetParameters(abstractMesh: AbstractMesh, effect: Effect): void {