From b62fbdbf840d264dd9e9fbf7fa446faedaf768f1 Mon Sep 17 00:00:00 2001 From: Nehon Date: Mon, 12 Mar 2018 23:13:59 +0100 Subject: [PATCH] Fixes node version of unshaded material --- .../resources/Common/MatDefs/Misc/UnshadedNodes.j3md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jme3-core/src/main/resources/Common/MatDefs/Misc/UnshadedNodes.j3md b/jme3-core/src/main/resources/Common/MatDefs/Misc/UnshadedNodes.j3md index b35c17a9d..1fdab8264 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Misc/UnshadedNodes.j3md +++ b/jme3-core/src/main/resources/Common/MatDefs/Misc/UnshadedNodes.j3md @@ -18,26 +18,26 @@ MaterialDef UnshadedNodes { ShaderNode GpuSkinning { Definition : BasicGPUSkinning : Common/MatDefs/ShaderNodes/HardwareSkinning/HardwareSkinning.j3sn Condition : NumberOfBones - InputMapping { + InputMappings { modelPosition = Global.position boneMatrices = MatParam.BoneMatrices boneWeight = Attr.inHWBoneWeight boneIndex = Attr.inHWBoneIndex } - OutputMapping { + OutputMappings { Global.position = modModelPosition } } ShaderNode UnshadedVert { Definition : CommonVert : Common/MatDefs/ShaderNodes/Common/CommonVert.j3sn - InputMapping { + InputMappings { worldViewProjectionMatrix = WorldParam.WorldViewProjectionMatrix modelPosition = Global.position.xyz texCoord1 = Attr.inTexCoord : ColorMap || (LightMap && !SeparateTexCoord) texCoord2 = Attr.inTexCoord2 : SeparateTexCoord vertColor = Attr.inColor : VertexColor } - OutputMapping { + OutputMappings { Global.position = projPosition } } @@ -89,7 +89,7 @@ MaterialDef UnshadedNodes { ShaderNode AlphaDiscardThreshold { Definition : AlphaDiscard : Common/MatDefs/ShaderNodes/Basic/AlphaDiscard.j3sn Condition : AlphaDiscardThreshold - InputMapping { + InputMappings { alpha = Global.outColor.a threshold = MatParam.AlphaDiscardThreshold }