Vulcan Nightmare

Experimentally bringing up vulcan support
This commit is contained in:
Kelsi 2026-02-21 19:41:21 -08:00
parent 863a786c48
commit 83b576e8d9
189 changed files with 12147 additions and 7820 deletions

View file

@ -0,0 +1,27 @@
#version 450
layout(set = 0, binding = 0) uniform PerFrame {
mat4 view;
mat4 projection;
mat4 lightSpaceMatrix;
vec4 lightDir;
vec4 lightColor;
vec4 ambientColor;
vec4 viewPos;
vec4 fogColor;
vec4 fogParams; // x=fogStart, y=fogEnd, z=time
vec4 shadowParams; // x=enabled, y=strength
};
layout(location = 0) in vec3 aPos;
layout(location = 0) out vec3 WorldPos;
layout(location = 1) out float Altitude;
void main() {
WorldPos = aPos;
Altitude = aPos.y;
mat4 rotView = mat4(mat3(view)); // strip translation
vec4 pos = projection * rotView * vec4(aPos, 1.0);
gl_Position = pos.xyww; // force far plane
}