mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 13:59:12 +01:00
feat(vulkan): vulkan 1.4 core with the user interface and the launcher, shaders split into ogl46/vk14 with SPIR-V binaries loaded first
This commit is contained in:
17
shaders/ogl46/shadowcube.vert
Normal file
17
shaders/ogl46/shadowcube.vert
Normal file
@@ -0,0 +1,17 @@
|
||||
#version 460 core
|
||||
#define STAGE_VERTEX 1
|
||||
layout(location = 0) in vec3 v_vert;
|
||||
layout(location = 2) in vec2 v_coord;
|
||||
|
||||
// position in the space of the cube shadow map being drawn (origin at the lamp), see shadowcube.geom
|
||||
layout(location = 20) out vec3 g_pos;
|
||||
layout(location = 18) out vec2 g_coord;
|
||||
|
||||
#include "common.glsl"
|
||||
|
||||
void main()
|
||||
{
|
||||
g_pos = (effective_modelview() * vec4(v_vert, 1.0f)).xyz;
|
||||
g_coord = v_coord;
|
||||
gl_Position = vec4(g_pos, 1.0f);
|
||||
}
|
||||
Reference in New Issue
Block a user