Apply uv transform in the prepass (#13250)
# Objective - The UV transform was applied in the main pass but not the prepass. ## Solution - Apply the UV transform in the prepass. ## Testing - The normals in my scene now look correct when using the prepass.
This commit is contained in:
parent
0eb4bb6bab
commit
519ed5de42
@ -54,9 +54,9 @@ fn fragment(
|
||||
#ifdef STANDARD_MATERIAL_NORMAL_MAP
|
||||
|
||||
#ifdef STANDARD_MATERIAL_NORMAL_MAP_UV_B
|
||||
let uv = in.uv_b;
|
||||
let uv = (material.uv_transform * vec3(in.uv_b, 1.0)).xy;
|
||||
#else
|
||||
let uv = in.uv;
|
||||
let uv = (material.uv_transform * vec3(in.uv, 1.0)).xy;
|
||||
#endif
|
||||
|
||||
// Fill in the sample bias so we can sample from textures.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user