diff --git a/tests/cpp-tests/Resources/Sprite3DTest/cube_map.frag b/tests/cpp-tests/Resources/Sprite3DTest/cube_map.frag index 69f05b6cdb..0ba884df3d 100644 --- a/tests/cpp-tests/Resources/Sprite3DTest/cube_map.frag +++ b/tests/cpp-tests/Resources/Sprite3DTest/cube_map.frag @@ -1,8 +1,12 @@ +#ifdef GL_ES +precision mediump float; +#endif -varying vec3 v_reflect; +varying vec3 v_reflect; uniform samplerCube u_cubeTex; +uniform vec4 u_color; void main(void) { - gl_FragColor = textureCube(u_cubeTex, v_reflect); -} \ No newline at end of file + gl_FragColor = textureCube(u_cubeTex, v_reflect) * u_color; +}