David Catuhe 6 år sedan
förälder
incheckning
fb34abcacb

+ 1 - 1
nodeEditor/src/components/nodeList/nodeListComponent.tsx

@@ -15,7 +15,7 @@ export class NodeListComponent extends React.Component<INodeListComponentProps>
         // Block types used to create the menu from
         const allBlocks = {
             Vertex: ["BonesBlock", "InstancesBlock", "MorphTargetsBlock"],
-            Fragment: ["AlphaTestBlock", "ImageProcessingBlock", "TextureBlock", "ReflectionTextureBlock","LightBlock", "FogBlock"],
+            Fragment: ["AlphaTestBlock", "FogBlock", "ImageProcessingBlock", "LightBlock", "ReflectionTextureBlock", "TextureBlock"],
             Outputs: ["VertexOutputBlock", "FragmentOutputBlock"],
             Math: ["AddBlock", "ClampBlock", "CrossBlock", "DotBlock", "MultiplyBlock", "RemapBlock", "NormalizeBlock", "ScaleBlock", "TransformBlock", "TrigonometryBlock"],
             Conversion: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],

+ 6 - 15
src/Lights/hemisphericLight.ts

@@ -91,21 +91,12 @@ export class HemisphericLight extends Light {
      */
     public transferToEffect(effect: Effect, lightIndex: string): HemisphericLight {
         var normalizeDirection = Vector3.Normalize(this.direction);
-        if (this.getScene().useRightHandedSystem) {
-            this._uniformBuffer.updateFloat4("vLightData",
-                -normalizeDirection.x,
-                -normalizeDirection.y,
-                -normalizeDirection.z,
-                0.0,
-                lightIndex);
-        } else {
-            this._uniformBuffer.updateFloat4("vLightData",
-                normalizeDirection.x,
-                normalizeDirection.y,
-                normalizeDirection.z,
-                0.0,
-                lightIndex);
-        }
+        this._uniformBuffer.updateFloat4("vLightData",
+            normalizeDirection.x,
+            normalizeDirection.y,
+            normalizeDirection.z,
+            0.0,
+            lightIndex);
         this._uniformBuffer.updateColor3("vLightGround", this.groundColor.scale(this.intensity), lightIndex);
         return this;
     }

+ 1 - 1
tests/validation/config.json

@@ -3,7 +3,7 @@
     "tests": [        
         {
             "title": "Node material",
-            "playgroundId": "#WYM31D#1",
+            "playgroundId": "#WYM31D#3",
             "referenceImage": "node-material.png"
         },
         {