nightvision.glsl 227 B

1234567891011121314151617
  1. uniform sampler2D samp9;
  2. out vec4 ocol0;
  3. in vec2 uv0;
  4. void main()
  5. {
  6. float4 c0 = texture(samp9, uv0).rgba;
  7. float green = c0.g;
  8. if (c0.g < 0.50)
  9. {
  10. green = c0.r + c0.b;
  11. }
  12. ocol0 = float4(0.0, green, 0.0, 1.0);
  13. }