mirror of
https://github.com/godotengine/godot.git
synced 2024-11-28 07:02:56 +00:00
fix view dependent problem in normal mapping
This commit is contained in:
parent
38971951f8
commit
b479a2c8f0
@ -306,7 +306,7 @@ void main() {
|
||||
#endif
|
||||
|
||||
#if defined(ENABLE_TANGENT_INTERP)
|
||||
tangent_interp=normalize(tangent_in);
|
||||
tangent_interp=normalize((modelview * vec4(tangent_in,0.0)).xyz);
|
||||
binormal_interp = normalize( cross(normal_interp,tangent_interp) * binormalf );
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user