mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-04 19:59:25 +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/simpleuv.vert
Normal file
17
shaders/ogl46/simpleuv.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;
|
||||
|
||||
layout(location = 2) out vec2 f_coord;
|
||||
|
||||
#include "common.glsl"
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = (projection * effective_modelview()) * vec4(v_vert, 1.0f);
|
||||
f_coord = v_coord;
|
||||
#ifdef MODEL_DRAWS
|
||||
f_model_draw = uint(gl_DrawID);
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user