diff options
| author | realtradam <[email protected]> | 2023-03-24 03:18:42 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-03-24 03:18:42 -0400 |
| commit | b2fdd29e4965b096e285a17162b268710077ea04 (patch) | |
| tree | 449f4d5fc1cad055d4e5f50a1af7c7f3d16689c5 /src/shaders/simple.vertex.sc | |
| parent | 632619168ddbe7707d4b47bf2ffcc972df7a20ea (diff) | |
| download | RodeoKit-b2fdd29e4965b096e285a17162b268710077ea04.tar.gz RodeoKit-b2fdd29e4965b096e285a17162b268710077ea04.zip | |
texture rendering prototype
Diffstat (limited to 'src/shaders/simple.vertex.sc')
| -rw-r--r-- | src/shaders/simple.vertex.sc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shaders/simple.vertex.sc b/src/shaders/simple.vertex.sc index 56b8736..b90a0c7 100644 --- a/src/shaders/simple.vertex.sc +++ b/src/shaders/simple.vertex.sc @@ -1,5 +1,5 @@ -$input a_position, a_color0 -$output v_color0 +$input a_position, a_color0, a_texcoord0 +$output v_color0, v_texcoord0 #include <bgfx_shader.sh> @@ -7,4 +7,5 @@ void main() { gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0)); v_color0 = a_color0; + v_texcoord0 = a_texcoord0; } |
