From 2e30b24438c2b968720483e5aadfcba80358efa7 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Mon, 30 Dec 2019 18:41:54 +0100 Subject: [PATCH] Fix #1236 non-lvalue cannot be out parameter --- .../main/resources/Common/ShaderLib/MorphAnim.glsllib | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/jme3-core/src/main/resources/Common/ShaderLib/MorphAnim.glsllib b/jme3-core/src/main/resources/Common/ShaderLib/MorphAnim.glsllib index b6c64f1ad..eea4100ba 100644 --- a/jme3-core/src/main/resources/Common/ShaderLib/MorphAnim.glsllib +++ b/jme3-core/src/main/resources/Common/ShaderLib/MorphAnim.glsllib @@ -173,10 +173,13 @@ Note that it only handles morphing position, normals and tangents. void Morph_Compute(inout vec4 pos){ #if (NUM_TARGETS_BUFFERS == 2) - Morph_Compute_Pos_Norm(pos,vec3(0.0)); + vec3 dummy_norm = vec3(0.0); + Morph_Compute_Pos_Norm(pos, dummy_norm); return; #elif (NUM_TARGETS_BUFFERS == 3) - Morph_Compute_Pos_Norm_Tan(pos, vec3(0.0), vec3(0.0)); + vec3 dummy_norm = vec3(0.0); + vec3 dummy_tan = vec3(0.0); + Morph_Compute_Pos_Norm_Tan(pos, dummy_norm, dummy_tan); return; #endif Morph_Compute_Pos(pos); @@ -187,7 +190,9 @@ Note that it only handles morphing position, normals and tangents. Morph_Compute_Pos(pos); return; #elif (NUM_TARGETS_BUFFERS == 3) - Morph_Compute_Pos_Norm_Tan(pos, vec3(0.0), vec3(0.0)); + vec3 dummy_norm = vec3(0.0); + vec3 dummy_tan = vec3(0.0); + Morph_Compute_Pos_Norm_Tan(pos, dummy_norm, dummy_tan); return; #elif (NUM_TARGETS_BUFFERS == 2) Morph_Compute_Pos_Norm(pos, norm);