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
16
examples/shader/resources/pixelate.vert
Normal file
16
examples/shader/resources/pixelate.vert
Normal file
|
@ -0,0 +1,16 @@
|
|||
attribute vec2 positionAttribute;
|
||||
attribute vec4 colorAttribute;
|
||||
attribute vec2 texCoordAttribute;
|
||||
|
||||
uniform mat4 modelViewProjectionMatrix;
|
||||
uniform mat4 textureMatrix;
|
||||
|
||||
varying vec4 texCoord;
|
||||
varying vec4 frontColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = modelViewProjectionMatrix * vec4(positionAttribute, 0.0, 1.0);
|
||||
texCoord = textureMatrix * vec4(texCoordAttribute, 0.0, 1.0);
|
||||
frontColor = colorAttribute;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue