Shader fixes

This commit is contained in:
luboslenco
2025-07-10 18:47:43 +02:00
parent 27f1e542fa
commit 274e910a43
4 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
#[set(everything)]
const constants: {
N: float3x3;
WVP: float4x4;
N: float3x3;
tex_unpack: float;
};
@@ -74,7 +74,7 @@ fun mesh_posnortex_frag(input: vert_out): float4[3] {
var occlusion: float = 1.0;
// n /= abs(n.x) + abs(n.y) + abs(n.z);
n = (n / abs(n.x) + abs(n.y) + abs(n.z));
n = n / (abs(n.x) + abs(n.y) + abs(n.z));
if (n.z >= 0.0) {
n.xy = n.xy;
}