#5 - fixed interpolation & rollback

This commit is contained in:
Martin Slachta
2026-08-05 15:20:56 +02:00
parent 2e95c941ba
commit 0e639abcd2
14 changed files with 243 additions and 40 deletions
+3
View File
@@ -2,6 +2,9 @@
layout(location = 0) out vec4 outColor;
layout(location = 0) in vec3 inNormal;
void main() {
float diffuse = max(0.1, dot(vec3(0.8, 1.5, -1.0), inNormal));
outColor = vec4(1.0, 0.0, 0.0, 1.0);
}
+2
View File
@@ -2,6 +2,7 @@
layout(location = 0) in vec3 pos;
layout(location = 1) in vec3 norm;
layout(location = 0) out vec3 outNormal;
layout(set = 0, binding = 0) uniform Camera {
mat4 proj;
@@ -21,5 +22,6 @@ void main() {
// outPos = pos.xyz * 0.05;
// outNormal = norm.xyz;
// outUV = uv;
outNormal = norm;
gl_Position = cam.proj * cam.view * PushConstants.transform * vec4(pos, 1.0);
}