|
@@ -227,9 +227,11 @@
|
|
|
//--
|
|
|
|
|
|
var mirrorMesh = new THREE.Mesh( planeGeo, groundMirrorMaterial );
|
|
|
- mirrorMesh.add( groundMirror );
|
|
|
- mirrorMesh.rotateX( - Math.PI / 2 );
|
|
|
- scene.add( mirrorMesh );
|
|
|
+ // add all alternative mirror materials inside the ReflectorRTT to prevent:
|
|
|
+ // glDrawElements: Source and destination textures of the draw are the same.
|
|
|
+ groundMirror.add( mirrorMesh );
|
|
|
+ groundMirror.rotateX( - Math.PI / 2 );
|
|
|
+ scene.add( groundMirror );
|
|
|
|
|
|
sphereGroup = new THREE.Object3D();
|
|
|
scene.add( sphereGroup );
|