Added support for shaders written in non-legacy GLSL.
This commit is contained in:
parent
1dcad60878
commit
db7e683688
18 changed files with 690 additions and 74 deletions
|
@ -4,8 +4,10 @@ uniform sampler2D texture;
|
|||
|
||||
in vec2 tex_coord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
// Read and apply a color from the texture
|
||||
gl_FragColor = texture2D(texture, tex_coord);
|
||||
fragColor = texture2D(texture, tex_coord);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue