diff options
Diffstat (limited to 'examples/point-mesh/shaders/point-mesh.vert')
-rw-r--r-- | examples/point-mesh/shaders/point-mesh.vert | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/examples/point-mesh/shaders/point-mesh.vert b/examples/point-mesh/shaders/point-mesh.vert index 6afbdb4a..4c129ee8 100644 --- a/examples/point-mesh/shaders/point-mesh.vert +++ b/examples/point-mesh/shaders/point-mesh.vert @@ -1,12 +1,21 @@ -attribute mediump vec2 aPosition; -attribute highp float aHue; -varying mediump vec2 vTexCoord; -uniform mediump mat4 uMvpMatrix; -uniform mediump vec3 uSize; -uniform mediump float uPointSize; -uniform lowp vec4 uFadeColor; -varying mediump vec3 vVertexColor; -varying mediump float vHue; +//@version 100 + +INPUT mediump vec2 aPosition; +INPUT highp float aHue; +OUTPUT mediump vec2 vTexCoord; +OUTPUT mediump vec3 vVertexColor; +OUTPUT mediump float vHue; + +UNIFORM_BLOCK Vanilla +{ +UNIFORM mediump mat4 uMvpMatrix; +UNIFORM mediump vec3 uSize; +}; + +UNIFORM_BLOCK Custom +{ +UNIFORM mediump float uPointSize; +}; vec3 hsv2rgb(vec3 c) { |