Logo white

Peter M. Groen / dali-demo

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • dali-demo
  • examples
  • deferred-shading
  • shaders
  • deferred-shading-mainpass.vert
  • Convert shaders in dali-demo to use shader compilation tool ...
    422d9161
    Change-Id: Ieee1546e6f20ad0f5fc29c239d7571e463bdcf6f
    Richard Huang authored
    2021-01-21 18:09:20 +0000  
    Browse Code ยป
deferred-shading-mainpass.vert 282 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#version 300 es
precision mediump float;

// DALI uniforms
uniform mat4 uMvpMatrix;
uniform vec3 uSize;

in vec3 aPosition;
in vec2 aTexCoord;

out vec2 vUv;

void main()
{
  vec4 position = uMvpMatrix * vec4(aPosition * uSize, 1.f);
  vUv = aTexCoord;

  gl_Position = position;
}