From 0fe9e0587add3bb16cd950c021beaf6e361b43fe Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 4 Mar 2009 20:09:05 +0000 Subject: [PATCH] Fix crash --- panda/src/pgraphnodes/shaderGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraphnodes/shaderGenerator.cxx b/panda/src/pgraphnodes/shaderGenerator.cxx index 7068549041..5a63523bc0 100644 --- a/panda/src/pgraphnodes/shaderGenerator.cxx +++ b/panda/src/pgraphnodes/shaderGenerator.cxx @@ -614,7 +614,7 @@ synthesize_shader(const RenderState *rs) { } if (_out_aux_normal) { text << "\t // Output the camera-space surface normal\n"; - text << "\t o_aux.rgb = (l_normal*0.5) + float4(0.5,0.5,0.5,0)).rgb;\n"; + text << "\t o_aux.rgb = (l_normal.rgb*0.5) + float3(0.5,0.5,0.5);\n"; } if (_lighting) { text << "\t // Begin view-space light calculations\n";