diff options
Diffstat (limited to 'examples/line-mesh/shaders/line-mesh.vert')
-rw-r--r-- | examples/line-mesh/shaders/line-mesh.vert | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/examples/line-mesh/shaders/line-mesh.vert b/examples/line-mesh/shaders/line-mesh.vert index e9ff779e..98949b86 100644 --- a/examples/line-mesh/shaders/line-mesh.vert +++ b/examples/line-mesh/shaders/line-mesh.vert @@ -1,11 +1,17 @@ -attribute mediump vec2 aPosition1; -attribute mediump vec2 aPosition2; -attribute lowp vec3 aColor; -uniform mediump mat4 uMvpMatrix; -uniform mediump vec3 uSize; -uniform mediump float uMorphAmount; +//@version 100 -varying lowp vec3 vColor; +INPUT mediump vec2 aPosition1; +INPUT mediump vec2 aPosition2; +INPUT lowp vec3 aColor; + +UNIFORM_BLOCK Vanilla +{ +UNIFORM mediump mat4 uMvpMatrix; +UNIFORM mediump vec3 uSize; +UNIFORM mediump float uMorphAmount; +}; + +OUTPUT lowp vec3 vColor; void main() { |