You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var cubeCamera = new THREE.CubeCamera(0.1,1000,256);
cubeCamera.clear(renderer)
generates a warning about .activeCubeFace now being a parameter on setRenderTarget and then generates subsequent webGL errors. This looks like the CubeCamera code hasn't been updated to reflect the new behavior, as the next line in the function calls
renderer.setRenderTarget( renderTarget ); : three.js line 40194
But doesn't pass the activeCubeFace as the second parameter.
I made a local copy of the library and changed the offending call site to:
//renderTarget.activeCubeFace = i; //Don't do the bad thing..
renderer.setRenderTarget( renderTarget, i ); //Do the right thing...
Description of the problem
Calling
generates a warning about .activeCubeFace now being a parameter on setRenderTarget and then generates subsequent webGL errors. This looks like the CubeCamera code hasn't been updated to reflect the new behavior, as the next line in the function calls
But doesn't pass the activeCubeFace as the second parameter.
I made a local copy of the library and changed the offending call site to:
and that seems to fix it.
https://jsfiddle.net/manthrax/gutwrs90/2/ <----r102 repro
https://jsfiddle.net/manthrax/ehfjkvxq/ <---- dev branch repro
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
all
The text was updated successfully, but these errors were encountered: