1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Draw sky as a fullscreen triangle

This commit is contained in:
Matias N. Goldberg
2023-08-05 17:55:43 -03:00
parent 6e7d87fb25
commit 79c9edab3b
3 changed files with 2 additions and 26 deletions

View File

@@ -23,7 +23,7 @@ layout(push_constant, std430) uniform Params {
params;
void main() {
vec2 base_arr[4] = vec2[](vec2(-1.0, -1.0), vec2(-1.0, 1.0), vec2(1.0, 1.0), vec2(1.0, -1.0));
vec2 base_arr[3] = vec2[](vec2(-1.0, -3.0), vec2(-1.0, 1.0), vec2(3.0, 1.0));
uv_interp = base_arr[gl_VertexIndex];
gl_Position = vec4(uv_interp, 1.0, 1.0);
}