Reflector recursion is capped to 3 max

Description of the problem

When you set recursion level for reflectors, it is capped to three ( see the screenshot )

image

All side walls were replaced by reflectors following the mirror example using

			var geometry1 = new THREE.PlaneBufferGeometry( 100, 100 );
			var verticalMirror1 = new THREE.Reflector( geometry1, {
					clipBias: 0.003,
					textureWidth: WIDTH * window.devicePixelRatio,
					textureHeight: HEIGHT * window.devicePixelRatio,
					color: 0x889999,
					recursion: 1000
				} );
				verticalMirror1.position.y = 50;
				verticalMirror1.position.z = 50;
        verticalMirror1.rotateY( Math.PI );
				scene.add( verticalMirror1 );

			var geometry2 = new THREE.PlaneBufferGeometry( 100, 100 );
			var verticalMirror2 = new THREE.Reflector( geometry2, {
					clipBias: 0.003,
					textureWidth: WIDTH * window.devicePixelRatio,
					textureHeight: HEIGHT * window.devicePixelRatio,
					color: 0x889999,
					recursion: 1000
				} );
        verticalMirror2.position.x = - 50;
				verticalMirror2.position.y = 50;
				verticalMirror2.rotateY( Math.PI / 2 );
				scene.add( verticalMirror2 );
        
			var geometry3 = new THREE.PlaneBufferGeometry( 100, 100 );
			var verticalMirror3 = new THREE.Reflector( geometry3, {
					clipBias: 0.003,
					textureWidth: WIDTH * window.devicePixelRatio,
					textureHeight: HEIGHT * window.devicePixelRatio,
					color: 0x889999,
					recursion: 1000
				} );
        verticalMirror3.position.x = 50;
        verticalMirror3.position.y = 50;
        verticalMirror3.rotateY( - Math.PI / 2 );
				scene.add( verticalMirror3 );
Three.js version

Latest version from the repository

Browser
  • Chrome 64.0.3282.140 (Official Build) (64-bit) (cohort: 68_84_win)
  • Firefox Quantom 63.0.3 64-bit
  • Internet Explorer 11.0.95 (KB4466536)
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Intel ID Graphics ( PCI\VEN_8086&DEV_0A16&SUBSYS_05E01028&REV_0B ) (PCI\VEN_8086&DEV_0A16&CC_030000 )

Author: Fantashit

1 thought on “Reflector recursion is capped to 3 max

Comments are closed.