Files
starruler-linux/data/shaders/source/skybox_ps.txt
T
2018-07-17 14:15:37 +02:00

16 lines
287 B
Plaintext

varying vec3 uvs;
varying vec2 uv;
uniform sampler2D texture;
//uniform samplerCube texture;
const float twopi = 6.28318530718;
void main() {
vec3 dir = uvs;
vec4 color = texture2D(texture,uv);
//vec4 color = textureCube(texture,dir,0.0);
gl_FragColor = color;
}