added raymarching demo for testing

This commit is contained in:
Piotrek
2021-04-14 15:42:31 +02:00
parent 70bb7a3e6e
commit 8094d8168d
10 changed files with 174 additions and 30 deletions
+5 -2
View File
@@ -6,11 +6,14 @@ layout(location=0) out vec2 vert_uv;
layout(set=1, binding=0) uniform Uniforms
{
mat4 view_projection;
mat4 view; // world to camera
mat4 proj; // camera to screen
mat4 proj_inv; // screen to camera
vec3 cam_pos; // camera position
};
void main()
{
vert_uv = in_uv;
gl_Position = view_projection * vec4(in_position, 1.0);
gl_Position = vec4(in_position, 1.0);
}