How to use the WebGLRenderTargetCube function from three

Find comprehensive JavaScript three.WebGLRenderTargetCube code examples handpicked from public code repositorys.

128
129
130
131
132
133
134
135
136
137
138
139
140
141


	var cubeMapSize = Math.min( this.cubeMapSize, size );
	this.cubeCamera = new THREE.CubeCamera( .1, 1000, cubeMapSize );


	var options = { format: THREE.RGBAFormat, magFilter: THREE.LinearFilter, minFilter: THREE.LinearFilter };
	this.cubeCamera.renderTarget = new THREE.WebGLRenderTargetCube( cubeMapSize, cubeMapSize, options );


	return this.cubeCamera;


}
fork icon0
star icon0
watch icon0

+ 6 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)