Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Apr 24, 2024
1 parent f826bbd commit a080f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textures/bump2normal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a080f30

Please sign in to comment.