sun.fs 221 B

1234567891011
  1. #version 120
  2. uniform sampler2D sun_texture;
  3. uniform float sun_brightness;
  4. uniform vec4 sun_color;
  5. varying vec2 fTexcoord;
  6. void main() {
  7. gl_FragColor = sun_brightness * sun_color * texture2D(sun_texture, fTexcoord);
  8. }