Description of the problem
If Sprites are in the scene, the clear color cannot be changed back to black
http://jsfiddle.net/ak35o645/7/
uncomment out the //scene.add( sprite ); to see bug
Three.js version
- [ X ] Dev
- [ X ] r84
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Nice find.
Simpler fiddle: http://jsfiddle.net/ak35o645/11/
SpritePlugin
callsrenderer.resetGLState()
which callsstate.reset()
which does this:That prevents
state.buffers.color.setClear( )
from working properly in the special case in which the desired color is black and the desired alpha is 1.@lojjic It is best to restrict the gl call to one place, and call it only when necessary. Thanks for bringing this issue to the forefront, though.
And thanks, @Neesnu.