axmol/tests/cpp-tests/Resources/Sprite3DTest/cube_map.frag

13 lines
208 B
GLSL
Raw Normal View History

2015-03-27 16:50:59 +08:00
#ifdef GL_ES
precision mediump float;
#endif
2015-01-29 09:28:14 +08:00
2015-03-27 16:50:59 +08:00
varying vec3 v_reflect;
2015-01-29 09:28:14 +08:00
uniform samplerCube u_cubeTex;
2015-03-27 16:50:59 +08:00
uniform vec4 u_color;
2015-01-29 09:28:14 +08:00
void main(void)
{
2015-03-27 16:50:59 +08:00
gl_FragColor = textureCube(u_cubeTex, v_reflect) * u_color;
}