Prechádzať zdrojové kódy

Update what's new and type doc

Gary Hsu 5 rokov pred
rodič
commit
5e7d10af3a

+ 1 - 0
dist/preview release/what's new.md

@@ -166,3 +166,4 @@
 - `Tools.ExtractMinAndMaxIndexed` and `Tools.ExtractMinAndMax` are now ambiant functions (available on `BABYLON.extractMinAndMaxIndexed` and `BABYLON.extractMinAndMax`) ([Deltakosh](https://github.com/deltakosh/))
 - `Tools.QueueNewFrame` was removed in favor of `Engine.QueueNewFrame` ([Deltakosh](https://github.com/deltakosh/))
 - Removed external data from Engine (`addExternalData`, `getExternalData`, `getOrAddExternalDataWithFactory`, `removeExternalData`)  ([Deltakosh](https://github.com/deltakosh/))
+- The glTF loader extensions that map to glTF 2.0 extensions will now be disabled if the extension is not present in `extensionsUsed`. ([bghgary](https://github.com/bghgary))

+ 10 - 0
src/Materials/material.ts

@@ -26,8 +26,18 @@ declare type InstancedMesh = import('../Meshes/instancedMesh').InstancedMesh;
 
 declare var BABYLON: any;
 
+/**
+ * Options for compiling materials.
+ */
 export interface IMaterialCompilationOptions {
+    /**
+     * Defines whether clip planes are enabled.
+     */
     clipPlane: boolean;
+
+    /**
+     * Defines whether instances are enabled.
+     */
     useInstances: boolean;
 }