diff options
Diffstat (limited to 'src/quick/scenegraph/shaders/vertexcolor.vert')
-rw-r--r-- | src/quick/scenegraph/shaders/vertexcolor.vert | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/quick/scenegraph/shaders/vertexcolor.vert b/src/quick/scenegraph/shaders/vertexcolor.vert new file mode 100644 index 0000000000..750d520114 --- /dev/null +++ b/src/quick/scenegraph/shaders/vertexcolor.vert @@ -0,0 +1,13 @@ +attribute highp vec4 vertexCoord; +attribute highp vec4 vertexColor; + +uniform highp mat4 matrix; +uniform highp float opacity; + +varying lowp vec4 color; + +void main() +{ + gl_Position = matrix * vertexCoord; + color = vertexColor * opacity; +}
\ No newline at end of file |