This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
NFRev1/NothinFancy/assets/base/shaders/cubemapFragment.shader
Grayson Riffe (Laptop) b4c704f5ec Basic physics with boxes
2021-10-25 00:40:44 -05:00

17 lines
289 B
GLSL

#version 330 core
in vec3 texCoord;
uniform samplerCube cm;
out vec4 color;
void main() {
vec3 tc;
tc = vec3(-texCoord.x, texCoord.y, texCoord.z);
if (texCoord.y > 0.999999 || texCoord.y < -0.999999) {
tc = vec3(texCoord.x, texCoord.y, texCoord.z);
}
color = texture(cm, tc);
}