mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Vulcan Nightmare
Experimentally bringing up vulcan support
This commit is contained in:
parent
863a786c48
commit
83b576e8d9
189 changed files with 12147 additions and 7820 deletions
19
assets/shaders/world_map.vert.glsl
Normal file
19
assets/shaders/world_map.vert.glsl
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#version 450
|
||||
|
||||
layout(push_constant) uniform Push {
|
||||
vec2 gridOffset;
|
||||
float gridCols;
|
||||
float gridRows;
|
||||
} push;
|
||||
|
||||
layout(location = 0) in vec2 aPos;
|
||||
layout(location = 1) in vec2 aUV;
|
||||
|
||||
layout(location = 0) out vec2 TexCoord;
|
||||
|
||||
void main() {
|
||||
TexCoord = aUV;
|
||||
vec2 pos = (aPos + push.gridOffset) / vec2(push.gridCols, push.gridRows);
|
||||
pos = pos * 2.0 - 1.0;
|
||||
gl_Position = vec4(pos, 0.0, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue