pex-renderer icon indicating copy to clipboard operation
pex-renderer copied to clipboard

GLTF: Flipped normals for doublesided materials

Open vorg opened this issue 6 years ago • 0 comments

Expected Screenshot 2019-11-13 at 15 20 57

Actual Screenshot 2019-11-13 at 15 21 36

Caused by normal flipping with a gltf geometry that has doubleSided: true

data.normalView *= float(gl_FrontFacing) * 2.0 - 1.0;

vorg avatar Nov 13 '19 15:11 vorg