gkjohnson / three-gpu-pathtracer

Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/index.html
MIT License
1.34k stars 133 forks source link

"Negative Scale Test" shows a hint of an "X" #543

Closed gkjohnson closed 7 months ago

gkjohnson commented 7 months ago

image

Same with "khronos-TextureSettingsTest"

gkjohnson commented 7 months ago

~It seems that the offset normal is incorrect - implying also that the "faceNormal" is being computed incorrectly for the planes?~

gkjohnson commented 7 months ago

This is a result of the structure of the scene. Two planes are facing eachother - the front one with a red x - which is reflecting off the back face.