mirror of
https://github.com/w23/xash3d-fwgs
synced 2025-01-05 16:35:56 +01:00
cbed97948c
Move descriptors away from vk_core Add UBO for dlights Add test lighting in brush shader Add brush normals
27 lines
592 B
GLSL
27 lines
592 B
GLSL
#version 450
|
|
|
|
layout(set=0,binding=0) uniform UBO {
|
|
mat4 mvp;
|
|
vec4 color;
|
|
} ubo;
|
|
|
|
layout(location=0) in vec3 aPos;
|
|
layout(location=1) in vec3 aNormal;
|
|
layout(location=2) in vec2 aTexture0;
|
|
layout(location=3) in vec2 aLightmapUV;
|
|
|
|
layout(location=0) out vec3 vPos;
|
|
layout(location=1) out vec3 vNormal;
|
|
layout(location=2) out vec2 vTexture0;
|
|
layout(location=3) out vec2 vLightmapUV;
|
|
layout(location=4) out vec4 vColor;
|
|
|
|
void main() {
|
|
vPos = aPos.xyz;
|
|
vNormal = aNormal;
|
|
vTexture0 = aTexture0;
|
|
vLightmapUV = aLightmapUV;
|
|
vColor = ubo.color;
|
|
gl_Position = ubo.mvp * vec4(aPos.xyz, 1.);
|
|
}
|