Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Vertex
- #version 120
- void main() {
- gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
- gl_TexCoord[0] = gl_MultiTexCoord0;
- gl_FrontColor = gl_Color;
- }
- #Fragment
- #version 120
- uniform float alpha;
- uniform sampler2D tex;
- void main() {
- gl_FragColor = texture2D(tex, vec2(gl_TexCoord[0])) * gl_Color * vec4(1, 1, 1, alpha);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement