DYTSrouce/Source/resources/shaders/osgOcean_godray_glare.frag

11 lines
222 B
GLSL
Raw Normal View History

2024-11-22 15:11:48 +00:00
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 );
}