mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
6
gpu/vk/shaders/clear.vert
Normal file
6
gpu/vk/shaders/clear.vert
Normal file
@@ -0,0 +1,6 @@
|
||||
#version 450
|
||||
// A triangle over the whole target (vk_draw.cpp masked clears)
|
||||
void main() {
|
||||
const vec2 p = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
|
||||
gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user