Files
jak-project/game/graphics/opengl_renderer/shaders/direct_basic_textured.frag
T
water111 b2052016e2 [decomp] sky/time of day (#883)
* time of day

* goal code seems to work

* stars at wrong spot

* stars and sun work

* debugging clouds

* fix texture correction

* sky works

* cleanup, add profiler

* clean up

* final clean up

* offline tests

* missing include
2021-10-10 20:07:03 -04:00

14 lines
256 B
GLSL

#version 330 core
out vec4 color;
in vec4 fragment_color;
in vec2 tex_coord;
uniform sampler2D tex_T0;
void main() {
//vec4 T0 = texture(tex_T0, tex_coord);
vec4 T0 = textureProj(tex_T0, vec3(tex_coord, 1.0));
color = fragment_color * T0 * 2.0;
}