DYTSrouce/resources/shaders/osgOcean_godray_glare.frag
2025-01-04 12:12:51 +08:00

11 lines
222 B
GLSL

uniform sampler2D osgOcean_GlareTexture;
varying vec3 vIntensity;
void main(void)
{
vec3 color = texture2D( osgOcean_GlareTexture, gl_TexCoord[0].st ).rgb;
gl_FragColor = vec4((vIntensity*color.r)*1.5, 1.0 );
}