OpenSceneGraph/examples/osgmultiviewOVR/leia.frag

15 lines
210 B
GLSL
Raw Normal View History

#version 330
uniform sampler2D texture;
in vec4 color;
in vec2 texcoord;
out vec4 fragColor;
void main(void)
{
fragColor = color * texture2D( texture, texcoord.xy);
if (fragColor.a==0.0) discard;
}