Ensure p.w is initialised in noise demo.

This commit is contained in:
Gary Wong 2008-12-13 12:58:18 -07:00
parent 8b69c42b35
commit 0df3dfab82

View file

@ -30,6 +30,7 @@ static const char *FragShaderText =
" vec4 p;\n"
" p.xy = gl_TexCoord[0].xy;\n"
" p.z = Slice;\n"
" p.w = 0;\n"
" vec4 n = noise4(p * scale);\n"
" gl_FragColor = n * Scale + Bias;\n"
"}\n";