diff options
Diffstat (limited to 'examples/rendering-cube')
-rw-r--r-- | examples/rendering-cube/shaders/rendering-cube.frag | 4 | ||||
-rw-r--r-- | examples/rendering-cube/shaders/rendering-cube.vert | 16 |
2 files changed, 14 insertions, 6 deletions
diff --git a/examples/rendering-cube/shaders/rendering-cube.frag b/examples/rendering-cube/shaders/rendering-cube.frag index 1f8954ad..67a08ab3 100644 --- a/examples/rendering-cube/shaders/rendering-cube.frag +++ b/examples/rendering-cube/shaders/rendering-cube.frag @@ -1,4 +1,6 @@ -varying mediump vec4 vColor; +//@version 100 + +INPUT mediump vec4 vColor; void main() { diff --git a/examples/rendering-cube/shaders/rendering-cube.vert b/examples/rendering-cube/shaders/rendering-cube.vert index d4a0b5c8..5c793742 100644 --- a/examples/rendering-cube/shaders/rendering-cube.vert +++ b/examples/rendering-cube/shaders/rendering-cube.vert @@ -1,9 +1,15 @@ -attribute mediump vec3 aPosition; // DALi shader builtin -attribute mediump vec3 aColor; // DALi shader builtin -uniform mediump mat4 uMvpMatrix; // DALi shader builtin -uniform mediump vec3 uSize; // DALi shader builtin +//@version 100 -varying mediump vec4 vColor; +INPUT mediump vec3 aPosition; // DALi shader builtin +INPUT mediump vec3 aColor; // DALi shader builtin + +UNIFORM_BLOCK Vanilla +{ +UNIFORM mediump mat4 uMvpMatrix; // DALi shader builtin +UNIFORM mediump vec3 uSize; // DALi shader builtin +}; + +OUTPUT mediump vec4 vColor; void main() { |