Open kenyee opened 5 years ago
Found a fix I think...decompiled ShapeFactory.makeCube and changed these lines: val front = Vector3.back() // front/back normals are flipped val back = Vector3.forward() // in the Sceneform code to swap front/back. Rotation works fine if you do this so it looks like the normals on the front/back surfaces weren't set properly?
If you modify the lighting sample here: https://github.com/googlesamples/sceneform-samples by rotating the box via either setLookDirection or setLocalRotation:
The lighting which should be above the box seems to be rendered onto it before it's rotated (notice that the light is on the side and nothing appears on the top of the box but it should be because the box is rotated):