We got a skybox
This commit is contained in:
10
destrum/assets_src/shaders/fullscreen_triangle.vert
Normal file
10
destrum/assets_src/shaders/fullscreen_triangle.vert
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 460
|
||||
|
||||
layout (location = 0) out vec2 outUV;
|
||||
|
||||
void main()
|
||||
{
|
||||
outUV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
|
||||
// gl_Position = vec4(outUV * 2.0f + -1.0f, 0.0f, 1.0f);
|
||||
gl_Position = vec4(outUV * 2.0 - 1.0, 1.0, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user