diff options
| author | realtradam <[email protected]> | 2023-01-06 15:53:53 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-01-06 15:53:53 -0500 |
| commit | 729a6b3b9cb0315106c87079a0eba9b294f02159 (patch) | |
| tree | 4d7062c70b13349685bd7dc39295af6b1dc64a25 /src/shaders/simple.vertex.sc | |
| parent | b1f855a82b40f1caeaf4d672638f2cfc933c8040 (diff) | |
| download | RodeoKit-729a6b3b9cb0315106c87079a0eba9b294f02159.tar.gz RodeoKit-729a6b3b9cb0315106c87079a0eba9b294f02159.zip | |
render batching for coloured rectangles
Diffstat (limited to 'src/shaders/simple.vertex.sc')
| -rw-r--r-- | src/shaders/simple.vertex.sc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shaders/simple.vertex.sc b/src/shaders/simple.vertex.sc new file mode 100644 index 0000000..56b8736 --- /dev/null +++ b/src/shaders/simple.vertex.sc @@ -0,0 +1,10 @@ +$input a_position, a_color0 +$output v_color0 + +#include <bgfx_shader.sh> + +void main() +{ + gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0)); + v_color0 = a_color0; +} |
