pailhead / three-rounded-box

a geometry class with filleted edges for THREE.js
59 stars 13 forks source link

Normals appear to be incorrect #3

Open carstenschwede opened 3 years ago

carstenschwede commented 3 years ago

It looks like the normals appear to be calculated incorrectly. When used in combination with an environment map and a reflective material it becomes apparent:

Screenshot 2021-05-15 at 14 26 19 Screenshot 2021-05-15 at 14 26 09

carstenschwede commented 3 years ago

Vertex normals are fine. Seems to be an issue with the envMap shading.

Screenshot 2021-05-15 at 14 58 27

pailhead commented 10 months ago

Ouch, i totally neglected this repo. Curious issue, since the normals seem to be correct. There have been many differet (better) implementations of this, so it might be worth revisiting this whole approach.