Closed DavidMansolino closed 5 years ago
The problem is visible only if using a normal map texture.
This issue is also visible with the Laptop PROTO
Webots screenshot:
I will check if I can identify where does the issue come from.
The problematic function is cotangentFrame
in pbr.frag
:
https://github.com/cyberbotics/webots/blob/bd8e1aff86dac1802ad42c2690e19fca50f6375f/resources/wren/shaders/pbr.frag#
For example if I change the invmax
value to 1.0, the issue disappears.
But I'm still debugging to understand where is exactly the source of the problem and how to prevent it.
Describe the Bug If the texture coordinate of the 3 vertices of a triangle are equal the rendering is not homogeneous as expected but looks completely wrong.
Screenshots
System
Additional context This is reproducible with the following world: