Added rect draw api
Added some new maths types Updated shaders to use new D_Rect structure Added rect buffers to frames Misc cleanup
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
|
||||
layout(location = 0) in vec2 frag_uv;
|
||||
layout(location = 1) in vec4 frag_c;
|
||||
layout(location = 2) in flat uint idx;
|
||||
layout(location = 2) in flat uint texid;
|
||||
|
||||
layout(location = 0) out vec4 framebuffer;
|
||||
|
||||
layout(binding = 1) uniform sampler2D u_image[];
|
||||
layout(binding = 1) uniform sampler2D u_images[];
|
||||
|
||||
void main() {
|
||||
framebuffer = frag_c * texture(u_image[idx], frag_uv);
|
||||
framebuffer = frag_c * texture(u_images[texid], frag_uv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user