Explorar o código

MaterialHelper Documentation Shoudl be ok

sebastien %!s(int64=7) %!d(string=hai) anos
pai
achega
8edad06cb9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 {