浏览代码

Renamed wellknowvalues to systemvalues #6012

David Catuhe 6 年之前
父节点
当前提交
4de3dcb417

+ 1 - 1
gui/src/3D/gui3DManager.ts

@@ -106,7 +106,7 @@ export class GUI3DManager implements IDisposable {
     }
     }
 
 
     private _doPicking(pi: PointerInfo): boolean {
     private _doPicking(pi: PointerInfo): boolean {
-        if (!this._utilityLayer || !this._utilityLayer.utilityLayerScene.activeCamera) {
+        if (!this._utilityLayer || !this._utilityLayer.shouldRender || !this._utilityLayer.utilityLayerScene.activeCamera) {
             return false;
             return false;
         }
         }
 
 

+ 1 - 1
inspector/src/components/actionTabs/tabs/propertyGrids/materials/nodeMaterialPropertyGridComponent.tsx

@@ -64,7 +64,7 @@ export class NodeMaterialPropertyGridComponent extends React.Component<INodeMate
 
 
     renderInputValues() {
     renderInputValues() {
         let configurableInputBlocks = this.props.material.getInputBlocks().filter(block => {
         let configurableInputBlocks = this.props.material.getInputBlocks().filter(block => {
-            return block.visibleInInspector && block.isUniform && !block.isWellKnownValue
+            return block.visibleInInspector && block.isUniform && !block.isSystemValue
         }).sort( (a, b) => {
         }).sort( (a, b) => {
             return a.name.localeCompare(b.name);
             return a.name.localeCompare(b.name);
         });
         });

+ 1 - 1
loaders/src/OBJ/objFileLoader.ts

@@ -874,7 +874,7 @@ export class OBJFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
         var lines = data.split('\n');
         var lines = data.split('\n');
         //Look at each line
         //Look at each line
         for (var i = 0; i < lines.length; i++) {
         for (var i = 0; i < lines.length; i++) {
-            var line = lines[i].trim();
+            var line = lines[i].trim().replace(/\s\s/g, " ");
             var result;
             var result;
 
 
             //Comment or newLine
             //Comment or newLine

+ 9 - 9
nodeEditor/src/blockTools.ts

@@ -30,7 +30,7 @@ import { DivideBlock } from 'babylonjs/Materials/Node/Blocks/divideBlock';
 import { SubtractBlock } from 'babylonjs/Materials/Node/Blocks/subtractBlock';
 import { SubtractBlock } from 'babylonjs/Materials/Node/Blocks/subtractBlock';
 import { StepBlock } from 'babylonjs/Materials/Node/Blocks/stepBlock';
 import { StepBlock } from 'babylonjs/Materials/Node/Blocks/stepBlock';
 import { InputBlock } from 'babylonjs/Materials/Node/Blocks/Input/inputBlock';
 import { InputBlock } from 'babylonjs/Materials/Node/Blocks/Input/inputBlock';
-import { NodeMaterialWellKnownValues } from 'babylonjs/Materials/Node/nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from 'babylonjs/Materials/Node/nodeMaterialSystemValues';
 import { AnimatedInputBlockTypes } from 'babylonjs/Materials/Node/Blocks/Input/animatedInputBlockTypes';
 import { AnimatedInputBlockTypes } from 'babylonjs/Materials/Node/Blocks/Input/animatedInputBlockTypes';
 import { OppositeBlock } from 'babylonjs/Materials/Node/Blocks/oppositeBlock';
 import { OppositeBlock } from 'babylonjs/Materials/Node/Blocks/oppositeBlock';
 import { ViewDirectionBlock } from 'babylonjs/Materials/Node/Blocks/viewDirectionBlock';
 import { ViewDirectionBlock } from 'babylonjs/Materials/Node/Blocks/viewDirectionBlock';
@@ -153,42 +153,42 @@ export class BlockTools {
             }       
             }       
             case "WorldMatrixBlock": {
             case "WorldMatrixBlock": {
                 let worldMatrixBlock = new InputBlock("World");
                 let worldMatrixBlock = new InputBlock("World");
-                worldMatrixBlock.setAsWellKnownValue(NodeMaterialWellKnownValues.World);
+                worldMatrixBlock.setAsSystemValue(NodeMaterialSystemValues.World);
                 return worldMatrixBlock;
                 return worldMatrixBlock;
             }             
             }             
             case "WorldViewMatrixBlock": {
             case "WorldViewMatrixBlock": {
                 let worldViewMatrixBlock = new InputBlock("World x View");
                 let worldViewMatrixBlock = new InputBlock("World x View");
-                worldViewMatrixBlock.setAsWellKnownValue(NodeMaterialWellKnownValues.WorldView);
+                worldViewMatrixBlock.setAsSystemValue(NodeMaterialSystemValues.WorldView);
                 return worldViewMatrixBlock;
                 return worldViewMatrixBlock;
             }             
             }             
             case "WorldViewProjectionMatrixBlock": {
             case "WorldViewProjectionMatrixBlock": {
                 let worldViewProjectionMatrixBlock = new InputBlock("World x View x Projection");
                 let worldViewProjectionMatrixBlock = new InputBlock("World x View x Projection");
-                worldViewProjectionMatrixBlock.setAsWellKnownValue(NodeMaterialWellKnownValues.WorldViewProjection);
+                worldViewProjectionMatrixBlock.setAsSystemValue(NodeMaterialSystemValues.WorldViewProjection);
                 return worldViewProjectionMatrixBlock;
                 return worldViewProjectionMatrixBlock;
             }                    
             }                    
             case "ViewMatrixBlock": {
             case "ViewMatrixBlock": {
                 let viewMatrixBlock = new InputBlock("View");
                 let viewMatrixBlock = new InputBlock("View");
-                viewMatrixBlock.setAsWellKnownValue(NodeMaterialWellKnownValues.View);
+                viewMatrixBlock.setAsSystemValue(NodeMaterialSystemValues.View);
                 return viewMatrixBlock;
                 return viewMatrixBlock;
             }                          
             }                          
             case "ViewProjectionMatrixBlock": {
             case "ViewProjectionMatrixBlock": {
                 let viewProjectionMatrixBlock = new InputBlock("View x Projection");
                 let viewProjectionMatrixBlock = new InputBlock("View x Projection");
-                viewProjectionMatrixBlock.setAsWellKnownValue(NodeMaterialWellKnownValues.ViewProjection);
+                viewProjectionMatrixBlock.setAsSystemValue(NodeMaterialSystemValues.ViewProjection);
                 return viewProjectionMatrixBlock;
                 return viewProjectionMatrixBlock;
             }                              
             }                              
             case "ProjectionMatrixBlock": {
             case "ProjectionMatrixBlock": {
                 let projectionMatrixBlock = new InputBlock("Projection");
                 let projectionMatrixBlock = new InputBlock("Projection");
-                projectionMatrixBlock.setAsWellKnownValue(NodeMaterialWellKnownValues.Projection);
+                projectionMatrixBlock.setAsSystemValue(NodeMaterialSystemValues.Projection);
                 return projectionMatrixBlock;
                 return projectionMatrixBlock;
             }                                 
             }                                 
             case "CameraPositionBlock": {
             case "CameraPositionBlock": {
                 let cameraPosition = new InputBlock("Camera position");
                 let cameraPosition = new InputBlock("Camera position");
-                cameraPosition.setAsWellKnownValue(NodeMaterialWellKnownValues.CameraPosition);
+                cameraPosition.setAsSystemValue(NodeMaterialSystemValues.CameraPosition);
                 return cameraPosition;
                 return cameraPosition;
             }                              
             }                              
             case "FogColorBlock": {
             case "FogColorBlock": {
                 let FogColor = new InputBlock("Fog color");
                 let FogColor = new InputBlock("Fog color");
-                FogColor.setAsWellKnownValue(NodeMaterialWellKnownValues.FogColor);
+                FogColor.setAsSystemValue(NodeMaterialSystemValues.FogColor);
                 return FogColor;
                 return FogColor;
             }                                   
             }                                   
             case "PositionBlock": {
             case "PositionBlock": {

+ 23 - 23
nodeEditor/src/components/diagram/input/inputNodePropertyComponent.tsx

@@ -6,7 +6,7 @@ import { GlobalState } from '../../../globalState';
 import { InputNodeModel } from './inputNodeModel';
 import { InputNodeModel } from './inputNodeModel';
 import { NodeMaterialBlockConnectionPointTypes } from 'babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes';
 import { NodeMaterialBlockConnectionPointTypes } from 'babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes';
 import { OptionsLineComponent } from '../../../sharedComponents/optionsLineComponent';
 import { OptionsLineComponent } from '../../../sharedComponents/optionsLineComponent';
-import { NodeMaterialWellKnownValues } from 'babylonjs/Materials/Node/nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from 'babylonjs/Materials/Node/nodeMaterialSystemValues';
 import { TextLineComponent } from '../../../sharedComponents/textLineComponent';
 import { TextLineComponent } from '../../../sharedComponents/textLineComponent';
 import { Color3PropertyTabComponent } from '../../propertyTab/properties/color3PropertyTabComponent';
 import { Color3PropertyTabComponent } from '../../propertyTab/properties/color3PropertyTabComponent';
 import { FloatPropertyTabComponent } from '../../propertyTab/properties/floatPropertyTabComponent';
 import { FloatPropertyTabComponent } from '../../propertyTab/properties/floatPropertyTabComponent';
@@ -60,7 +60,7 @@ export class InputPropertyTabComponentProps extends React.Component<IInputProper
     render() {
     render() {
         let inputBlock = this.props.inputNode.inputBlock;
         let inputBlock = this.props.inputNode.inputBlock;
 
 
-        var wellKnownOptions: {label: string, value: NodeMaterialWellKnownValues}[] = [];
+        var systemValuesOptions: {label: string, value: NodeMaterialSystemValues}[] = [];
         var attributeOptions: {label: string, value: string}[] = [];
         var attributeOptions: {label: string, value: string}[] = [];
         var animationOptions: {label: string, value: AnimatedInputBlockTypes}[] = [];
         var animationOptions: {label: string, value: AnimatedInputBlockTypes}[] = [];
 
 
@@ -72,18 +72,18 @@ export class InputPropertyTabComponentProps extends React.Component<IInputProper
                 ];
                 ];
                 break;      
                 break;      
             case NodeMaterialBlockConnectionPointTypes.Matrix:
             case NodeMaterialBlockConnectionPointTypes.Matrix:
-                wellKnownOptions = [
-                    { label: "World", value: NodeMaterialWellKnownValues.World },
-                    { label: "WorldxView", value: NodeMaterialWellKnownValues.WorldView },
-                    { label: "WorldxViewxProjection", value: NodeMaterialWellKnownValues.WorldViewProjection },
-                    { label: "View", value: NodeMaterialWellKnownValues.View },
-                    { label: "ViewxProjection", value: NodeMaterialWellKnownValues.ViewProjection },
-                    { label: "Projection", value: NodeMaterialWellKnownValues.Projection }
+                systemValuesOptions = [
+                    { label: "World", value: NodeMaterialSystemValues.World },
+                    { label: "WorldxView", value: NodeMaterialSystemValues.WorldView },
+                    { label: "WorldxViewxProjection", value: NodeMaterialSystemValues.WorldViewProjection },
+                    { label: "View", value: NodeMaterialSystemValues.View },
+                    { label: "ViewxProjection", value: NodeMaterialSystemValues.ViewProjection },
+                    { label: "Projection", value: NodeMaterialSystemValues.Projection }
                 ];
                 ];
                 break;
                 break;
             case NodeMaterialBlockConnectionPointTypes.Color3:
             case NodeMaterialBlockConnectionPointTypes.Color3:
-                wellKnownOptions = [
-                    { label: "Fog color", value: NodeMaterialWellKnownValues.FogColor }
+                systemValuesOptions = [
+                    { label: "Fog color", value: NodeMaterialSystemValues.FogColor }
                 ];
                 ];
                 break;
                 break;
             case NodeMaterialBlockConnectionPointTypes.Color4:
             case NodeMaterialBlockConnectionPointTypes.Color4:
@@ -98,8 +98,8 @@ export class InputPropertyTabComponentProps extends React.Component<IInputProper
                 ];
                 ];
                 break;                
                 break;                
             case NodeMaterialBlockConnectionPointTypes.Vector3:
             case NodeMaterialBlockConnectionPointTypes.Vector3:
-                wellKnownOptions = [
-                    { label: "Camera position", value: NodeMaterialWellKnownValues.CameraPosition }
+                systemValuesOptions = [
+                    { label: "Camera position", value: NodeMaterialSystemValues.CameraPosition }
                 ];
                 ];
                 attributeOptions = [
                 attributeOptions = [
                     { label: "position", value: "position" },
                     { label: "position", value: "position" },
@@ -123,8 +123,8 @@ export class InputPropertyTabComponentProps extends React.Component<IInputProper
             modeOptions.push({ label: "Mesh attribute", value: 1 });
             modeOptions.push({ label: "Mesh attribute", value: 1 });
         }
         }
 
 
-        if (wellKnownOptions.length > 0) {
-            modeOptions.push({ label: "Well-known value", value: 2 });
+        if (systemValuesOptions.length > 0) {
+            modeOptions.push({ label: "System value", value: 2 });
         }
         }
 
 
         return (
         return (
@@ -144,7 +144,7 @@ export class InputPropertyTabComponentProps extends React.Component<IInputProper
                                 return 1;
                                 return 1;
                             }
                             }
 
 
-                            if (block.isWellKnownValue) {
+                            if (block.isSystemValue) {
                                 return 2;
                                 return 2;
                             }
                             }
 
 
@@ -154,14 +154,14 @@ export class InputPropertyTabComponentProps extends React.Component<IInputProper
                             switch (value) {
                             switch (value) {
                                 case 0:
                                 case 0:
                                     inputBlock.isUniform = true;
                                     inputBlock.isUniform = true;
-                                    inputBlock.setAsWellKnownValue(null);
+                                    inputBlock.setAsSystemValue(null);
                                     this.setDefaultValue();
                                     this.setDefaultValue();
                                     break;
                                     break;
                                 case 1:
                                 case 1:
                                     inputBlock.setAsAttribute(attributeOptions[0].value);
                                     inputBlock.setAsAttribute(attributeOptions[0].value);
                                     break;
                                     break;
                                 case 2:
                                 case 2:
-                                    inputBlock.setAsWellKnownValue(wellKnownOptions[0].value);
+                                    inputBlock.setAsSystemValue(systemValuesOptions[0].value);
                                     break;
                                     break;
                             }
                             }
                             this.forceUpdate();
                             this.forceUpdate();
@@ -183,17 +183,17 @@ export class InputPropertyTabComponentProps extends React.Component<IInputProper
                         }} />
                         }} />
                     }   
                     }   
                     {
                     {
-                        inputBlock.isUniform && !inputBlock.isWellKnownValue && inputBlock.animationType === AnimatedInputBlockTypes.None &&
+                        inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === AnimatedInputBlockTypes.None &&
                         <CheckBoxLineComponent label="Visible in the Inspector" target={inputBlock} propertyName="visibleInInspector"/>
                         <CheckBoxLineComponent label="Visible in the Inspector" target={inputBlock} propertyName="visibleInInspector"/>
                     }                 
                     }                 
                     {
                     {
-                        inputBlock.isUniform && !inputBlock.isWellKnownValue && inputBlock.animationType === AnimatedInputBlockTypes.None &&
+                        inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === AnimatedInputBlockTypes.None &&
                         this.renderValue(this.props.globalState)
                         this.renderValue(this.props.globalState)
                     }
                     }
                     {
                     {
-                        inputBlock.isUniform && inputBlock.isWellKnownValue &&
-                        <OptionsLineComponent label="Well known value" options={wellKnownOptions} target={inputBlock} propertyName="wellKnownValue" onSelect={(value: any) => {
-                            inputBlock.setAsWellKnownValue(value);
+                        inputBlock.isUniform && inputBlock.isSystemValue &&
+                        <OptionsLineComponent label="System value" options={systemValuesOptions} target={inputBlock} propertyName="systemValue" onSelect={(value: any) => {
+                            inputBlock.setAsSystemValue(value);
                             this.forceUpdate();
                             this.forceUpdate();
                             this.props.globalState.onRebuildRequiredObservable.notifyObservers();
                             this.props.globalState.onRebuildRequiredObservable.notifyObservers();
                         }} />
                         }} />

+ 11 - 11
nodeEditor/src/components/diagram/input/inputNodeWidget.tsx

@@ -2,7 +2,7 @@ import * as React from "react";
 import { InputNodeModel } from './inputNodeModel';
 import { InputNodeModel } from './inputNodeModel';
 import { Nullable } from 'babylonjs/types';
 import { Nullable } from 'babylonjs/types';
 import { GlobalState } from '../../../globalState';
 import { GlobalState } from '../../../globalState';
-import { NodeMaterialWellKnownValues } from 'babylonjs/Materials/Node/nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from 'babylonjs/Materials/Node/nodeMaterialSystemValues';
 import { NodeMaterialBlockConnectionPointTypes } from 'babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes';
 import { NodeMaterialBlockConnectionPointTypes } from 'babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes';
 import { Color3, Vector2, Vector3, Vector4 } from 'babylonjs/Maths/math';
 import { Color3, Vector2, Vector3, Vector4 } from 'babylonjs/Maths/math';
 import { StringTools } from '../../../stringTools';
 import { StringTools } from '../../../stringTools';
@@ -63,30 +63,30 @@ export class InputNodeWidget extends React.Component<IInputNodeWidgetProps> {
             if (inputBlock.isAttribute) {
             if (inputBlock.isAttribute) {
                 value = "mesh." + inputBlock.name;
                 value = "mesh." + inputBlock.name;
                 name = StringTools.GetBaseType(inputBlock.output.type);
                 name = StringTools.GetBaseType(inputBlock.output.type);
-            } else if (inputBlock.isWellKnownValue) {
-                switch (inputBlock.wellKnownValue) {
-                    case NodeMaterialWellKnownValues.World:
+            } else if (inputBlock.isSystemValue) {
+                switch (inputBlock.systemValue) {
+                    case NodeMaterialSystemValues.World:
                         value = "World";
                         value = "World";
                         break;
                         break;
-                    case NodeMaterialWellKnownValues.WorldView:
+                    case NodeMaterialSystemValues.WorldView:
                         value = "World x View";
                         value = "World x View";
                         break;
                         break;
-                    case NodeMaterialWellKnownValues.WorldViewProjection:
+                    case NodeMaterialSystemValues.WorldViewProjection:
                         value = "World x View x Projection";
                         value = "World x View x Projection";
                         break;
                         break;
-                    case NodeMaterialWellKnownValues.View:
+                    case NodeMaterialSystemValues.View:
                         value = "View";
                         value = "View";
                         break;
                         break;
-                    case NodeMaterialWellKnownValues.ViewProjection:
+                    case NodeMaterialSystemValues.ViewProjection:
                         value = "View x Projection";
                         value = "View x Projection";
                         break;
                         break;
-                    case NodeMaterialWellKnownValues.Projection:
+                    case NodeMaterialSystemValues.Projection:
                         value = "Projection";
                         value = "Projection";
                         break;
                         break;
-                    case NodeMaterialWellKnownValues.CameraPosition:
+                    case NodeMaterialSystemValues.CameraPosition:
                         value = "Camera position";
                         value = "Camera position";
                         break;
                         break;
-                    case NodeMaterialWellKnownValues.FogColor:
+                    case NodeMaterialSystemValues.FogColor:
                         value = "Fog color";
                         value = "Fog color";
                         break;
                         break;
                 }
                 }

+ 5 - 5
src/Materials/Node/Blocks/Dual/fogBlock.ts

@@ -1,7 +1,7 @@
 import { NodeMaterialBlock } from '../../nodeMaterialBlock';
 import { NodeMaterialBlock } from '../../nodeMaterialBlock';
 import { NodeMaterialBlockConnectionPointTypes } from '../../nodeMaterialBlockConnectionPointTypes';
 import { NodeMaterialBlockConnectionPointTypes } from '../../nodeMaterialBlockConnectionPointTypes';
 import { NodeMaterialBuildState } from '../../nodeMaterialBuildState';
 import { NodeMaterialBuildState } from '../../nodeMaterialBuildState';
-import { NodeMaterialWellKnownValues } from '../../nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from '../../nodeMaterialSystemValues';
 import { NodeMaterialBlockTargets } from '../../nodeMaterialBlockTargets';
 import { NodeMaterialBlockTargets } from '../../nodeMaterialBlockTargets';
 import { Mesh } from '../../../../Meshes/mesh';
 import { Mesh } from '../../../../Meshes/mesh';
 import { Effect } from '../../../effect';
 import { Effect } from '../../../effect';
@@ -85,20 +85,20 @@ export class FogBlock extends NodeMaterialBlock {
 
 
     public autoConfigure(material: NodeMaterial) {
     public autoConfigure(material: NodeMaterial) {
         if (!this.view.isConnected) {
         if (!this.view.isConnected) {
-            let viewInput = material.getInputBlockByPredicate((b) => b.wellKnownValue === NodeMaterialWellKnownValues.View);
+            let viewInput = material.getInputBlockByPredicate((b) => b.systemValue === NodeMaterialSystemValues.View);
 
 
             if (!viewInput) {
             if (!viewInput) {
                 viewInput = new InputBlock("view");
                 viewInput = new InputBlock("view");
-                viewInput.setAsWellKnownValue(NodeMaterialWellKnownValues.View);
+                viewInput.setAsSystemValue(NodeMaterialSystemValues.View);
             }
             }
             viewInput.output.connectTo(this.view);
             viewInput.output.connectTo(this.view);
         }
         }
         if (!this.fogColor.isConnected) {
         if (!this.fogColor.isConnected) {
-            let fogColorInput = material.getInputBlockByPredicate((b) => b.wellKnownValue === NodeMaterialWellKnownValues.FogColor);
+            let fogColorInput = material.getInputBlockByPredicate((b) => b.systemValue === NodeMaterialSystemValues.FogColor);
 
 
             if (!fogColorInput) {
             if (!fogColorInput) {
                 fogColorInput = new InputBlock("fogColor", undefined, NodeMaterialBlockConnectionPointTypes.Color3);
                 fogColorInput = new InputBlock("fogColor", undefined, NodeMaterialBlockConnectionPointTypes.Color3);
-                fogColorInput.setAsWellKnownValue(NodeMaterialWellKnownValues.FogColor);
+                fogColorInput.setAsSystemValue(NodeMaterialSystemValues.FogColor);
             }
             }
             fogColorInput.output.connectTo(this.fogColor);
             fogColorInput.output.connectTo(this.fogColor);
         }
         }

+ 3 - 3
src/Materials/Node/Blocks/Dual/lightBlock.ts

@@ -8,7 +8,7 @@ import { AbstractMesh } from '../../../../Meshes/abstractMesh';
 import { NodeMaterial, NodeMaterialDefines } from '../../nodeMaterial';
 import { NodeMaterial, NodeMaterialDefines } from '../../nodeMaterial';
 import { Effect } from '../../../effect';
 import { Effect } from '../../../effect';
 import { Mesh } from '../../../../Meshes/mesh';
 import { Mesh } from '../../../../Meshes/mesh';
-import { NodeMaterialWellKnownValues } from '../../nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from '../../nodeMaterialSystemValues';
 import { InputBlock } from '../Input/inputBlock';
 import { InputBlock } from '../Input/inputBlock';
 import { Light } from '../../../../Lights/light';
 import { Light } from '../../../../Lights/light';
 import { Nullable } from '../../../../types';
 import { Nullable } from '../../../../types';
@@ -86,11 +86,11 @@ export class LightBlock extends NodeMaterialBlock {
 
 
     public autoConfigure(material: NodeMaterial) {
     public autoConfigure(material: NodeMaterial) {
         if (!this.cameraPosition.isConnected) {
         if (!this.cameraPosition.isConnected) {
-            let cameraPositionInput = material.getInputBlockByPredicate((b) => b.wellKnownValue === NodeMaterialWellKnownValues.CameraPosition);
+            let cameraPositionInput = material.getInputBlockByPredicate((b) => b.systemValue === NodeMaterialSystemValues.CameraPosition);
 
 
             if (!cameraPositionInput) {
             if (!cameraPositionInput) {
                 cameraPositionInput = new InputBlock("cameraPosition");
                 cameraPositionInput = new InputBlock("cameraPosition");
-                cameraPositionInput.setAsWellKnownValue(NodeMaterialWellKnownValues.CameraPosition);
+                cameraPositionInput.setAsSystemValue(NodeMaterialSystemValues.CameraPosition);
             }
             }
             cameraPositionInput.output.connectTo(this.cameraPosition);
             cameraPositionInput.output.connectTo(this.cameraPosition);
         }
         }

+ 7 - 7
src/Materials/Node/Blocks/Dual/reflectionTextureBlock.ts

@@ -13,7 +13,7 @@ import { _TypeStore } from '../../../../Misc/typeStore';
 import { Texture } from '../../../Textures/texture';
 import { Texture } from '../../../Textures/texture';
 import { Scene } from '../../../../scene';
 import { Scene } from '../../../../scene';
 import { InputBlock } from '../Input/inputBlock';
 import { InputBlock } from '../Input/inputBlock';
-import { NodeMaterialWellKnownValues } from '../../nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from '../../nodeMaterialSystemValues';
 import { Constants } from '../../../../Engines/constants';
 import { Constants } from '../../../../Engines/constants';
 
 
 /**
 /**
@@ -156,31 +156,31 @@ export class ReflectionTextureBlock extends NodeMaterialBlock {
         }
         }
 
 
         if (!this.world.isConnected) {
         if (!this.world.isConnected) {
-            let worldInput = material.getInputBlockByPredicate((b) => b.wellKnownValue === NodeMaterialWellKnownValues.World);
+            let worldInput = material.getInputBlockByPredicate((b) => b.systemValue === NodeMaterialSystemValues.World);
 
 
             if (!worldInput) {
             if (!worldInput) {
                 worldInput = new InputBlock("world");
                 worldInput = new InputBlock("world");
-                worldInput.setAsWellKnownValue(NodeMaterialWellKnownValues.World);
+                worldInput.setAsSystemValue(NodeMaterialSystemValues.World);
             }
             }
             worldInput.output.connectTo(this.world);
             worldInput.output.connectTo(this.world);
         }
         }
 
 
         if (!this.cameraPosition.isConnected) {
         if (!this.cameraPosition.isConnected) {
-            let cameraPositionInput = material.getInputBlockByPredicate((b) => b.wellKnownValue === NodeMaterialWellKnownValues.CameraPosition);
+            let cameraPositionInput = material.getInputBlockByPredicate((b) => b.systemValue === NodeMaterialSystemValues.CameraPosition);
 
 
             if (!cameraPositionInput) {
             if (!cameraPositionInput) {
                 cameraPositionInput = new InputBlock("cameraPosition");
                 cameraPositionInput = new InputBlock("cameraPosition");
-                cameraPositionInput.setAsWellKnownValue(NodeMaterialWellKnownValues.CameraPosition);
+                cameraPositionInput.setAsSystemValue(NodeMaterialSystemValues.CameraPosition);
             }
             }
             cameraPositionInput.output.connectTo(this.cameraPosition);
             cameraPositionInput.output.connectTo(this.cameraPosition);
         }
         }
 
 
         if (!this.view.isConnected) {
         if (!this.view.isConnected) {
-            let viewInput = material.getInputBlockByPredicate((b) => b.wellKnownValue === NodeMaterialWellKnownValues.View);
+            let viewInput = material.getInputBlockByPredicate((b) => b.systemValue === NodeMaterialSystemValues.View);
 
 
             if (!viewInput) {
             if (!viewInput) {
                 viewInput = new InputBlock("view");
                 viewInput = new InputBlock("view");
-                viewInput.setAsWellKnownValue(NodeMaterialWellKnownValues.View);
+                viewInput.setAsSystemValue(NodeMaterialSystemValues.View);
             }
             }
             viewInput.output.connectTo(this.view);
             viewInput.output.connectTo(this.view);
         }
         }

+ 48 - 48
src/Materials/Node/Blocks/Input/inputBlock.ts

@@ -1,7 +1,7 @@
 import { NodeMaterialBlock } from '../../nodeMaterialBlock';
 import { NodeMaterialBlock } from '../../nodeMaterialBlock';
 import { NodeMaterialBlockConnectionPointTypes } from '../../nodeMaterialBlockConnectionPointTypes';
 import { NodeMaterialBlockConnectionPointTypes } from '../../nodeMaterialBlockConnectionPointTypes';
 import { NodeMaterialBlockConnectionPointMode } from '../../NodeMaterialBlockConnectionPointMode';
 import { NodeMaterialBlockConnectionPointMode } from '../../NodeMaterialBlockConnectionPointMode';
-import { NodeMaterialWellKnownValues } from '../../nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from '../../nodeMaterialSystemValues';
 import { Nullable } from '../../../../types';
 import { Nullable } from '../../../../types';
 import { Effect } from '../../../../Materials/effect';
 import { Effect } from '../../../../Materials/effect';
 import { Matrix, Vector2, Vector3, Vector4 } from '../../../../Maths/math.vector';
 import { Matrix, Vector2, Vector3, Vector4 } from '../../../../Maths/math.vector';
@@ -25,7 +25,7 @@ export class InputBlock extends NodeMaterialBlock {
     private _animationType = AnimatedInputBlockTypes.None;
     private _animationType = AnimatedInputBlockTypes.None;
 
 
     /** @hidden */
     /** @hidden */
-    public _wellKnownValue: Nullable<NodeMaterialWellKnownValues> = null;
+    public _systemValue: Nullable<NodeMaterialSystemValues> = null;
 
 
     /** Gets or sets a boolean indicating that this input can be edited in the Inspector (false by default) */
     /** Gets or sets a boolean indicating that this input can be edited in the Inspector (false by default) */
     public visibleInInspector = false;
     public visibleInInspector = false;
@@ -85,20 +85,20 @@ export class InputBlock extends NodeMaterialBlock {
                 }
                 }
             }
             }
 
 
-            if (this.isWellKnownValue) {
-                switch (this._wellKnownValue) {
-                    case NodeMaterialWellKnownValues.World:
-                    case NodeMaterialWellKnownValues.WorldView:
-                    case NodeMaterialWellKnownValues.WorldViewProjection:
-                    case NodeMaterialWellKnownValues.View:
-                    case NodeMaterialWellKnownValues.ViewProjection:
-                    case NodeMaterialWellKnownValues.Projection:
+            if (this.isSystemValue) {
+                switch (this._systemValue) {
+                    case NodeMaterialSystemValues.World:
+                    case NodeMaterialSystemValues.WorldView:
+                    case NodeMaterialSystemValues.WorldViewProjection:
+                    case NodeMaterialSystemValues.View:
+                    case NodeMaterialSystemValues.ViewProjection:
+                    case NodeMaterialSystemValues.Projection:
                         this._type = NodeMaterialBlockConnectionPointTypes.Matrix;
                         this._type = NodeMaterialBlockConnectionPointTypes.Matrix;
                         return this._type;
                         return this._type;
-                    case NodeMaterialWellKnownValues.CameraPosition:
+                    case NodeMaterialSystemValues.CameraPosition:
                         this._type = NodeMaterialBlockConnectionPointTypes.Vector3;
                         this._type = NodeMaterialBlockConnectionPointTypes.Vector3;
                         return this._type;
                         return this._type;
-                    case NodeMaterialWellKnownValues.FogColor:
+                    case NodeMaterialSystemValues.FogColor:
                         this._type = NodeMaterialBlockConnectionPointTypes.Color3;
                         this._type = NodeMaterialBlockConnectionPointTypes.Color3;
                         return this._type;
                         return this._type;
                 }
                 }
@@ -145,12 +145,12 @@ export class InputBlock extends NodeMaterialBlock {
     }
     }
 
 
     /**
     /**
-     * Set the source of this connection point to a well known value
-     * @param value define the well known value to use (world, view, etc...) or null to switch to manual value
+     * Set the source of this connection point to a system value
+     * @param value define the system value to use (world, view, etc...) or null to switch to manual value
      * @returns the current connection point
      * @returns the current connection point
      */
      */
-    public setAsWellKnownValue(value: Nullable<NodeMaterialWellKnownValues>): InputBlock {
-        this.wellKnownValue = value;
+    public setAsSystemValue(value: Nullable<NodeMaterialSystemValues>): InputBlock {
+        this.systemValue = value;
         return this;
         return this;
     }
     }
 
 
@@ -249,23 +249,23 @@ export class InputBlock extends NodeMaterialBlock {
     }
     }
 
 
     /**
     /**
-     * Gets a boolean indicating that the current connection point is a well known value
+     * Gets a boolean indicating that the current connection point is a system value
      */
      */
-    public get isWellKnownValue(): boolean {
-        return this._wellKnownValue != null;
+    public get isSystemValue(): boolean {
+        return this._systemValue != null;
     }
     }
 
 
     /**
     /**
-     * Gets or sets the current well known value or null if not defined as well know value
+     * Gets or sets the current well known value or null if not defined as a system value
      */
      */
-    public get wellKnownValue(): Nullable<NodeMaterialWellKnownValues> {
-        return this._wellKnownValue;
+    public get systemValue(): Nullable<NodeMaterialSystemValues> {
+        return this._systemValue;
     }
     }
 
 
-    public set wellKnownValue(value: Nullable<NodeMaterialWellKnownValues>) {
+    public set systemValue(value: Nullable<NodeMaterialSystemValues>) {
         this._mode = NodeMaterialBlockConnectionPointMode.Uniform;
         this._mode = NodeMaterialBlockConnectionPointMode.Uniform;
         this.associatedVariableName = "";
         this.associatedVariableName = "";
-        this._wellKnownValue = value;
+        this._systemValue = value;
     }
     }
 
 
     /**
     /**
@@ -332,8 +332,8 @@ export class InputBlock extends NodeMaterialBlock {
         if (this.isAttribute) {
         if (this.isAttribute) {
             return `${this._codeVariableName}.setAsAttribute("${this.name}");\r\n`;
             return `${this._codeVariableName}.setAsAttribute("${this.name}");\r\n`;
         }
         }
-        if (this.isWellKnownValue) {
-            return `${this._codeVariableName}.setAsWellKnownValue(BABYLON.NodeMaterialWellKnownValues.${NodeMaterialWellKnownValues[this._wellKnownValue!]});\r\n`;
+        if (this.isSystemValue) {
+            return `${this._codeVariableName}.setAsSystemValue(BABYLON.NodeMaterialSystemValues.${NodeMaterialSystemValues[this._systemValue!]});\r\n`;
         }
         }
         if (this.isUniform) {
         if (this.isUniform) {
             let valueString = "";
             let valueString = "";
@@ -384,12 +384,12 @@ export class InputBlock extends NodeMaterialBlock {
 
 
             // well known
             // well known
             let hints = state.sharedData.hints;
             let hints = state.sharedData.hints;
-            if (this._wellKnownValue !== null) {
-                switch (this._wellKnownValue) {
-                    case NodeMaterialWellKnownValues.WorldView:
+            if (this._systemValue !== null) {
+                switch (this._systemValue) {
+                    case NodeMaterialSystemValues.WorldView:
                         hints.needWorldViewMatrix = true;
                         hints.needWorldViewMatrix = true;
                         break;
                         break;
-                    case NodeMaterialWellKnownValues.WorldViewProjection:
+                    case NodeMaterialSystemValues.WorldViewProjection:
                         hints.needWorldViewProjectionMatrix = true;
                         hints.needWorldViewProjectionMatrix = true;
                         break;
                         break;
                 }
                 }
@@ -428,19 +428,19 @@ export class InputBlock extends NodeMaterialBlock {
 
 
     /** @hidden */
     /** @hidden */
     public _transmitWorld(effect: Effect, world: Matrix, worldView: Matrix, worldViewProjection: Matrix) {
     public _transmitWorld(effect: Effect, world: Matrix, worldView: Matrix, worldViewProjection: Matrix) {
-        if (!this._wellKnownValue) {
+        if (!this._systemValue) {
             return;
             return;
         }
         }
 
 
         let variableName = this.associatedVariableName;
         let variableName = this.associatedVariableName;
-        switch (this._wellKnownValue) {
-            case NodeMaterialWellKnownValues.World:
+        switch (this._systemValue) {
+            case NodeMaterialSystemValues.World:
                 effect.setMatrix(variableName, world);
                 effect.setMatrix(variableName, world);
                 break;
                 break;
-            case NodeMaterialWellKnownValues.WorldView:
+            case NodeMaterialSystemValues.WorldView:
                 effect.setMatrix(variableName, worldView);
                 effect.setMatrix(variableName, worldView);
                 break;
                 break;
-            case NodeMaterialWellKnownValues.WorldViewProjection:
+            case NodeMaterialSystemValues.WorldViewProjection:
                 effect.setMatrix(variableName, worldViewProjection);
                 effect.setMatrix(variableName, worldViewProjection);
                 break;
                 break;
         }
         }
@@ -453,25 +453,25 @@ export class InputBlock extends NodeMaterialBlock {
         }
         }
 
 
         let variableName = this.associatedVariableName;
         let variableName = this.associatedVariableName;
-        if (this._wellKnownValue) {
-            switch (this._wellKnownValue) {
-                case NodeMaterialWellKnownValues.World:
-                case NodeMaterialWellKnownValues.WorldView:
-                case NodeMaterialWellKnownValues.WorldViewProjection:
+        if (this._systemValue) {
+            switch (this._systemValue) {
+                case NodeMaterialSystemValues.World:
+                case NodeMaterialSystemValues.WorldView:
+                case NodeMaterialSystemValues.WorldViewProjection:
                     return;
                     return;
-                case NodeMaterialWellKnownValues.View:
+                case NodeMaterialSystemValues.View:
                     effect.setMatrix(variableName, scene.getViewMatrix());
                     effect.setMatrix(variableName, scene.getViewMatrix());
                     break;
                     break;
-                case NodeMaterialWellKnownValues.Projection:
+                case NodeMaterialSystemValues.Projection:
                     effect.setMatrix(variableName, scene.getProjectionMatrix());
                     effect.setMatrix(variableName, scene.getProjectionMatrix());
                     break;
                     break;
-                case NodeMaterialWellKnownValues.ViewProjection:
+                case NodeMaterialSystemValues.ViewProjection:
                     effect.setMatrix(variableName, scene.getTransformMatrix());
                     effect.setMatrix(variableName, scene.getTransformMatrix());
                     break;
                     break;
-                case NodeMaterialWellKnownValues.CameraPosition:
+                case NodeMaterialSystemValues.CameraPosition:
                     effect.setVector3(variableName, scene.activeCamera!.globalPosition);
                     effect.setVector3(variableName, scene.activeCamera!.globalPosition);
                     break;
                     break;
-                case NodeMaterialWellKnownValues.FogColor:
+                case NodeMaterialSystemValues.FogColor:
                     effect.setColor3(variableName, scene.fogColor);
                     effect.setColor3(variableName, scene.fogColor);
                     break;
                     break;
             }
             }
@@ -515,7 +515,7 @@ export class InputBlock extends NodeMaterialBlock {
     protected _buildBlock(state: NodeMaterialBuildState) {
     protected _buildBlock(state: NodeMaterialBuildState) {
         super._buildBlock(state);
         super._buildBlock(state);
 
 
-        if (this.isUniform || this.isWellKnownValue) {
+        if (this.isUniform || this.isSystemValue) {
             state.sharedData.inputBlocks.push(this);
             state.sharedData.inputBlocks.push(this);
         }
         }
 
 
@@ -527,7 +527,7 @@ export class InputBlock extends NodeMaterialBlock {
 
 
         serializationObject.type = this.type;
         serializationObject.type = this.type;
         serializationObject.mode = this._mode;
         serializationObject.mode = this._mode;
-        serializationObject.wellKnownValue = this._wellKnownValue;
+        serializationObject.systemValue = this._systemValue;
         serializationObject.animationType = this._animationType;
         serializationObject.animationType = this._animationType;
         serializationObject.visibleInInspector = this.visibleInInspector;
         serializationObject.visibleInInspector = this.visibleInInspector;
 
 
@@ -549,7 +549,7 @@ export class InputBlock extends NodeMaterialBlock {
 
 
         this._type = serializationObject.type;
         this._type = serializationObject.type;
         this._mode = serializationObject.mode;
         this._mode = serializationObject.mode;
-        this._wellKnownValue = serializationObject.wellKnownValue;
+        this._systemValue = serializationObject.systemValue || serializationObject.wellKnownValue;
         this._animationType = serializationObject.animationType;
         this._animationType = serializationObject.animationType;
         this.visibleInInspector = serializationObject.visibleInInspector;
         this.visibleInInspector = serializationObject.visibleInInspector;
 
 

+ 3 - 3
src/Materials/Node/Blocks/Vertex/bonesBlock.ts

@@ -1,7 +1,7 @@
 import { NodeMaterialBlock } from '../../nodeMaterialBlock';
 import { NodeMaterialBlock } from '../../nodeMaterialBlock';
 import { NodeMaterialBlockConnectionPointTypes } from '../../nodeMaterialBlockConnectionPointTypes';
 import { NodeMaterialBlockConnectionPointTypes } from '../../nodeMaterialBlockConnectionPointTypes';
 import { NodeMaterialBuildState } from '../../nodeMaterialBuildState';
 import { NodeMaterialBuildState } from '../../nodeMaterialBuildState';
-import { NodeMaterialWellKnownValues } from '../../nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from '../../nodeMaterialSystemValues';
 import { NodeMaterialBlockTargets } from '../../nodeMaterialBlockTargets';
 import { NodeMaterialBlockTargets } from '../../nodeMaterialBlockTargets';
 import { AbstractMesh } from '../../../../Meshes/abstractMesh';
 import { AbstractMesh } from '../../../../Meshes/abstractMesh';
 import { Mesh } from '../../../../Meshes/mesh';
 import { Mesh } from '../../../../Meshes/mesh';
@@ -113,11 +113,11 @@ export class BonesBlock extends NodeMaterialBlock {
             matricesWeightsInput.output.connectTo(this.matricesWeights);
             matricesWeightsInput.output.connectTo(this.matricesWeights);
         }
         }
         if (!this.world.isConnected) {
         if (!this.world.isConnected) {
-            let worldInput = material.getInputBlockByPredicate((b) => b.wellKnownValue === NodeMaterialWellKnownValues.World);
+            let worldInput = material.getInputBlockByPredicate((b) => b.systemValue === NodeMaterialSystemValues.World);
 
 
             if (!worldInput) {
             if (!worldInput) {
                 worldInput = new InputBlock("world");
                 worldInput = new InputBlock("world");
-                worldInput.setAsWellKnownValue(NodeMaterialWellKnownValues.World);
+                worldInput.setAsSystemValue(NodeMaterialSystemValues.World);
             }
             }
             worldInput.output.connectTo(this.world);
             worldInput.output.connectTo(this.world);
         }
         }

+ 2 - 2
src/Materials/Node/Blocks/Vertex/instancesBlock.ts

@@ -5,7 +5,7 @@ import { NodeMaterialConnectionPoint } from '../../nodeMaterialBlockConnectionPo
 import { NodeMaterialBuildState } from '../../nodeMaterialBuildState';
 import { NodeMaterialBuildState } from '../../nodeMaterialBuildState';
 import { AbstractMesh } from '../../../../Meshes/abstractMesh';
 import { AbstractMesh } from '../../../../Meshes/abstractMesh';
 import { NodeMaterial, NodeMaterialDefines } from '../../nodeMaterial';
 import { NodeMaterial, NodeMaterialDefines } from '../../nodeMaterial';
-import { NodeMaterialWellKnownValues } from '../../nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from '../../nodeMaterialSystemValues';
 import { InputBlock } from '../Input/inputBlock';
 import { InputBlock } from '../Input/inputBlock';
 import { _TypeStore } from '../../../../Misc/typeStore';
 import { _TypeStore } from '../../../../Misc/typeStore';
 
 
@@ -122,7 +122,7 @@ export class InstancesBlock extends NodeMaterialBlock {
 
 
             if (!worldInput) {
             if (!worldInput) {
                 worldInput = new InputBlock("world");
                 worldInput = new InputBlock("world");
-                worldInput.setAsWellKnownValue(NodeMaterialWellKnownValues.World);
+                worldInput.setAsSystemValue(NodeMaterialSystemValues.World);
             }
             }
             worldInput.output.connectTo(this.world);
             worldInput.output.connectTo(this.world);
         }
         }

+ 3 - 3
src/Materials/Node/Blocks/viewDirectionBlock.ts

@@ -5,7 +5,7 @@ import { NodeMaterialConnectionPoint } from '../nodeMaterialBlockConnectionPoint
 import { NodeMaterialBlockTargets } from '../nodeMaterialBlockTargets';
 import { NodeMaterialBlockTargets } from '../nodeMaterialBlockTargets';
 import { _TypeStore } from '../../../Misc/typeStore';
 import { _TypeStore } from '../../../Misc/typeStore';
 import { NodeMaterial } from '../nodeMaterial';
 import { NodeMaterial } from '../nodeMaterial';
-import { NodeMaterialWellKnownValues } from '../nodeMaterialWellKnownValues';
+import { NodeMaterialSystemValues } from '../nodeMaterialSystemValues';
 import { InputBlock } from './Input/inputBlock';
 import { InputBlock } from './Input/inputBlock';
 /**
 /**
  * Block used to get the view direction
  * Block used to get the view direction
@@ -55,11 +55,11 @@ export class ViewDirectionBlock extends NodeMaterialBlock {
 
 
     public autoConfigure(material: NodeMaterial) {
     public autoConfigure(material: NodeMaterial) {
         if (!this.cameraPosition.isConnected) {
         if (!this.cameraPosition.isConnected) {
-            let cameraPositionInput = material.getInputBlockByPredicate((b) => b.wellKnownValue === NodeMaterialWellKnownValues.CameraPosition);
+            let cameraPositionInput = material.getInputBlockByPredicate((b) => b.systemValue === NodeMaterialSystemValues.CameraPosition);
 
 
             if (!cameraPositionInput) {
             if (!cameraPositionInput) {
                 cameraPositionInput = new InputBlock("cameraPosition");
                 cameraPositionInput = new InputBlock("cameraPosition");
-                cameraPositionInput.setAsWellKnownValue(NodeMaterialWellKnownValues.CameraPosition);
+                cameraPositionInput.setAsSystemValue(NodeMaterialSystemValues.CameraPosition);
             }
             }
             cameraPositionInput.output.connectTo(this.cameraPosition);
             cameraPositionInput.output.connectTo(this.cameraPosition);
         }
         }

+ 1 - 1
src/Materials/Node/index.ts

@@ -3,6 +3,6 @@ export * from "./nodeMaterialBlockConnectionPointTypes";
 export * from "./nodeMaterialBlockConnectionPoint";
 export * from "./nodeMaterialBlockConnectionPoint";
 export * from "./nodeMaterialBlock";
 export * from "./nodeMaterialBlock";
 export * from "./nodeMaterial";
 export * from "./nodeMaterial";
-export * from "./nodeMaterialWellKnownValues";
+export * from "./nodeMaterialSystemValues";
 export * from "./Blocks/index";
 export * from "./Blocks/index";
 export * from "./Optimizers/index";
 export * from "./Optimizers/index";

+ 2 - 2
src/Materials/Node/nodeMaterial.ts

@@ -980,14 +980,14 @@ export class NodeMaterial extends PushMaterial {
         positionInput.setAsAttribute("position");
         positionInput.setAsAttribute("position");
 
 
         var worldInput = new InputBlock("world");
         var worldInput = new InputBlock("world");
-        worldInput.setAsWellKnownValue(BABYLON.NodeMaterialWellKnownValues.World);
+        worldInput.setAsSystemValue(BABYLON.NodeMaterialSystemValues.World);
 
 
         var worldPos = new TransformBlock("worldPos");
         var worldPos = new TransformBlock("worldPos");
         positionInput.connectTo(worldPos);
         positionInput.connectTo(worldPos);
         worldInput.connectTo(worldPos);
         worldInput.connectTo(worldPos);
 
 
         var viewProjectionInput = new InputBlock("viewProjection");
         var viewProjectionInput = new InputBlock("viewProjection");
-        viewProjectionInput.setAsWellKnownValue(BABYLON.NodeMaterialWellKnownValues.ViewProjection);
+        viewProjectionInput.setAsSystemValue(BABYLON.NodeMaterialSystemValues.ViewProjection);
 
 
         var worldPosdMultipliedByViewProjection = new TransformBlock("worldPos * viewProjectionTransform");
         var worldPosdMultipliedByViewProjection = new TransformBlock("worldPos * viewProjectionTransform");
         worldPos.connectTo(worldPosdMultipliedByViewProjection);
         worldPos.connectTo(worldPosdMultipliedByViewProjection);

+ 2 - 2
src/Materials/Node/nodeMaterialWellKnownValues.ts

@@ -1,7 +1,7 @@
 /**
 /**
- * Enum used to define well known values e.g. values automatically provided by the system
+ * Enum used to define system values e.g. values automatically provided by the system
  */
  */
-export enum NodeMaterialWellKnownValues {
+export enum NodeMaterialSystemValues {
     /** World */
     /** World */
     World = 1,
     World = 1,
     /** View */
     /** View */

+ 4 - 3
src/Materials/shaderMaterial.ts

@@ -93,9 +93,10 @@ export class ShaderMaterial extends Material {
      * @param name Define the name of the material in the scene
      * @param name Define the name of the material in the scene
      * @param scene Define the scene the material belongs to
      * @param scene Define the scene the material belongs to
      * @param shaderPath Defines  the route to the shader code in one of three ways:
      * @param shaderPath Defines  the route to the shader code in one of three ways:
-     *     - object - { vertex: "custom", fragment: "custom" }, used with Effect.ShadersStore["customVertexShader"] and Effect.ShadersStore["customFragmentShader"]
-     *     - object - { vertexElement: "vertexShaderCode", fragmentElement: "fragmentShaderCode" }, used with shader code in <script> tags
-     *     - string - "./COMMON_NAME", used with external files COMMON_NAME.vertex.fx and COMMON_NAME.fragment.fx in index.html folder.
+     *  * object: { vertex: "custom", fragment: "custom" }, used with Effect.ShadersStore["customVertexShader"] and Effect.ShadersStore["customFragmentShader"]
+     *  * object: { vertexElement: "vertexShaderCode", fragmentElement: "fragmentShaderCode" }, used with shader code in script tags
+     *  * object: { vertexSource: "vertex shader code string", fragmentSource: "fragment shader code string" } using with strings containing the shaders code
+     *  * string: "./COMMON_NAME", used with external files COMMON_NAME.vertex.fx and COMMON_NAME.fragment.fx in index.html folder.
      * @param options Define the options used to create the shader
      * @param options Define the options used to create the shader
      */
      */
     constructor(name: string, scene: Scene, shaderPath: any, options: Partial<IShaderMaterialOptions> = {}) {
     constructor(name: string, scene: Scene, shaderPath: any, options: Partial<IShaderMaterialOptions> = {}) {