From a080f30c9e3aec4d4cdfff5b2c1098c9aa086d66 Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 25 Apr 2024 00:57:35 +0800 Subject: [PATCH] bump --- src/textures/bump2normal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/bump2normal.cpp b/src/textures/bump2normal.cpp index ac0d650e..d3fa30bf 100644 --- a/src/textures/bump2normal.cpp +++ b/src/textures/bump2normal.cpp @@ -55,7 +55,7 @@ class Bump2NormalTextureInstance final : public Texture::Instance { _bump->evaluate(Interaction{it.uv() - make_float2(step, 0.f)}, time).x; auto dy = _bump->evaluate(Interaction{it.uv() + make_float2(0.f, step)}, time).x - _bump->evaluate(Interaction{it.uv() - make_float2(0.f, step)}, time).x; - n = normalize(make_float3(dx / (2.f * step), dy / (2.f * step), 1.f)); + n = normalize(make_float3(dx / (2.f * step), -dy / (2.f * step), 1.f)); }; return make_float4(n * 0.5f + 0.5f, 1.f); }