Commit fec2d49f authored by Michele Bosi's avatar Michele Bosi

Fixed GLSL error.

parent 0e583b2c
......@@ -82,13 +82,13 @@ vec4 LightingStage()
} else
if ( vl_Vivid.enableTextureMapping ) {
if ( vl_Vivid.textureDimension == 1 ) {
color = color * texture1D( vl_UserTexture1D, gl_TexCoord[0].s );
color = color * texture1D( vl_UserTexture1D, gl_TexCoord[0].x );
} else
if ( vl_Vivid.textureDimension == 2 ) {
color = color * texture2D( vl_UserTexture2D, gl_TexCoord[0].st );
color = color * texture2D( vl_UserTexture2D, gl_TexCoord[0].xy );
} else
if ( vl_Vivid.textureDimension == 3 ) {
color = color * texture3D( vl_UserTexture3D, gl_TexCoord[0].str );
color = color * texture3D( vl_UserTexture3D, gl_TexCoord[0].xyz );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment