mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +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
17
assets/shaders/minimap_tile.vert.glsl
Normal file
17
assets/shaders/minimap_tile.vert.glsl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#version 450
|
||||
|
||||
layout(push_constant) uniform Push {
|
||||
vec2 gridOffset;
|
||||
} 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) / 3.0;
|
||||
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