Skip to content

Commit 684cabb

Browse files
fixed bumpmap range issue
1 parent 2581ed9 commit 684cabb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/shader/loader/mtl/fragment_impl.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ vec4 nbl_sample_Ns(in vec2 uv, in mat2 dUV) { return texture(map_Ns, uv); }
7474
vec4 nbl_sample_d(in vec2 uv, in mat2 dUV) { return texture(map_d, uv); }
7575
#endif
7676
#ifndef _NBL_bump_SAMPLE_FUNCTION_DEFINED_
77-
vec2 nbl_sample_bump(in vec2 uv, in mat2 dUV) { return texture(map_bump, uv).xy * 2.f - vec2(1.f); }
77+
vec2 nbl_sample_bump(in vec2 uv, in mat2 dUV) { return texture(map_bump, uv).xy; }
7878
#endif
7979
#endif //_NBL_TEXTURE_SAMPLE_FUNCTIONS_DEFINED_
8080

0 commit comments

Comments
 (0)