Merge pull request #100859 from StaydMcMuffin/scene-shaders-user-normal-fix
Fix User-supplied Normals Being Ignored
This commit is contained in:
@ -1816,7 +1816,6 @@ void main() {
|
||||
normal = -normal;
|
||||
}
|
||||
#endif // DO_SIDE_CHECK
|
||||
vec3 geo_normal = normalize(normal);
|
||||
#endif // NORMAL_USED
|
||||
|
||||
#ifdef UV_USED
|
||||
@ -1882,6 +1881,10 @@ void main() {
|
||||
#endif //USE_MULTIVIEW
|
||||
#endif //LIGHT_VERTEX_USED
|
||||
|
||||
#ifdef NORMAL_USED
|
||||
vec3 geo_normal = normalize(normal);
|
||||
#endif // NORMAL_USED
|
||||
|
||||
#ifndef USE_SHADOW_TO_OPACITY
|
||||
|
||||
#if defined(ALPHA_SCISSOR_USED)
|
||||
|
||||
Reference in New Issue
Block a user