Three.js: Node Material normals flipped

Created on 29 Aug 2019  路  6Comments  路  Source: mrdoob/three.js

Description of the problem

On the newest version of three.js, the normals as seen on the node material example are flipped.

This is what it looked like before the latest release:

node-normal-before

After the release:
node-normal-after

Three.js version
  • [x] Dev
  • [x] r108
Browser
  • [ ] All of them
  • [x] Chrome
  • [x] Firefox
  • [ ] Internet Explorer
OS
  • [ ] All of them
  • [x] Android
  • [ ] Windows
  • [ ] macOS
  • [X] Linux
  • [ ] iOS
Bug

Most helpful comment

I think that It is because the pertubNormal2Arb in NodeMaterial was update, now pertub2.. result is diferentes with double-sided material. I am working for NodeMaterial get the core functions in runtime.

All 6 comments

@sunag could this be related to recent changes for clearcoat normals?

I think that It is because the pertubNormal2Arb in NodeMaterial was update, now pertub2.. result is diferentes with double-sided material. I am working for NodeMaterial get the core functions in runtime.

I still am not sure about change this, apparently with use node material and without NodeMaterial the result (MeshStandardNodeMaterial x MeshStandardMaterial) is the same? I have to test this with other sides to assure if this is really a bug or a not.

Maybe this is a bug of the function pertubNormal2Arb from the core?

Was this page helpful?
0 / 5 - 0 ratings