ho3/resources/shaders/env.fragment

13 lines
228 B
Plaintext
Raw Normal View History

2024-06-06 13:25:38 +00:00
uniform samplerCube Env;
varying vec3 dir;
void main(){
2024-06-08 17:55:56 +00:00
gl_FragColor = textureCube(Env, normalize(dir));
2024-06-08 20:24:26 +00:00
//if (dir.z < 0)
//{
// gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
//}
2024-06-08 17:55:56 +00:00
//gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
2024-06-06 13:25:38 +00:00
}