OpenSceneGraph/examples/osgmultiviewOVR/multiviewOVR.frag

15 lines
210 B
GLSL
Raw Normal View History

#version 330
uniform sampler2D texture;
2020-11-13 02:35:16 +08:00
in vec4 color;
in vec2 texcoord;
out vec4 fragColor;
void main(void)
{
2020-11-13 02:35:16 +08:00
fragColor = color * texture2D( texture, texcoord.xy);
if (fragColor.a==0.0) discard;
}