Fix: Texture Coordinate normals are not normalized in Cycles OSL
The output normals of the Texture Coordinate node when using the OSL backend were not normalized, leading to incorrect values in some situations. This commit fixes this issue by normalizing the normals in this situation. Pull Request: https://projects.blender.org/blender/blender/pulls/132514
This commit is contained in:
@@ -63,7 +63,7 @@ shader node_texture_coordinate(
|
||||
}
|
||||
Camera = transform("camera", P);
|
||||
Window = transform("NDC", P);
|
||||
Normal = transform("world", "object", N);
|
||||
Normal = normalize(transform("world", "object", N));
|
||||
Reflection = -reflect(I, N);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user