mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
delay text rendering until end of frame which renders ALL text in one draw call
This commit is contained in:
+1
-1
@@ -4,10 +4,10 @@ layout (location = 0) in vec2 vertex;
|
||||
// per instance
|
||||
layout (location = 1) in vec4 offset;
|
||||
layout (location = 2) in int tex_index;
|
||||
layout (location = 3) in mat4 model; // this takes locations 3,4,5,6
|
||||
|
||||
out vec2 v_TexCoords;
|
||||
uniform mat4 projection;
|
||||
uniform mat4 model;
|
||||
// buffer for all the 96 ascii characters' texcoords
|
||||
uniform vec2 texcoords[96 * 4];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user