2022-09-19 01:20:51 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout (location = 0) in vec3 fragColor;
|
2022-09-21 02:02:58 +00:00
|
|
|
layout (location = 1) in vec2 fragUv;
|
2022-09-19 01:20:51 +00:00
|
|
|
|
|
|
|
layout (location = 0) out vec4 outColor;
|
|
|
|
|
2022-09-21 02:02:58 +00:00
|
|
|
layout (binding = 0) uniform GlobalUbo {
|
2022-09-19 01:20:51 +00:00
|
|
|
mat4 projectionViewMatrix;
|
|
|
|
vec3 directionToLight;
|
|
|
|
} ubo;
|
|
|
|
|
2022-09-25 16:07:49 +00:00
|
|
|
layout (binding = 2) uniform Deez {
|
|
|
|
mat4 projectionViewMatrix;
|
|
|
|
vec3 directionToLight;
|
|
|
|
} deez;
|
|
|
|
|
2022-09-21 02:02:58 +00:00
|
|
|
layout (binding = 1) uniform sampler2D texSampler;
|
|
|
|
|
2022-09-19 01:20:51 +00:00
|
|
|
layout(push_constant) uniform Push {
|
|
|
|
mat4 transform;
|
|
|
|
mat4 normalMatrix;
|
|
|
|
} push;
|
|
|
|
|
|
|
|
void main() {
|
2022-09-26 03:08:03 +00:00
|
|
|
outColor = mix(texture(texSampler, fragUv), vec4(fragColor, 1.0), .1);
|
2022-09-19 01:20:51 +00:00
|
|
|
}
|