Lerige Posted January 26, 2015 Share Posted January 26, 2015 Hi all, I'm playing with sprites and experiencing strange behavior with shadows.After a quick look in code I've found this in rendering manager : this._renderSprites(index); It seems it lacks a "if (renderSprites) {" arround it. I'll try to confirm this this evening when I'll have time for real tests ++ Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 26, 2015 Share Posted January 26, 2015 Ok happy to fix if you confirm it:) Quote Link to comment Share on other sites More sharing options...
Lerige Posted January 26, 2015 Author Share Posted January 26, 2015 ok I confirm Here is a quick and dirty test : http://www.babylonjs-playground.com/#1OEPUZ#4 If you zoom back and move the camera you should see the sprites "shadow" effect on the sphere shadow. I assume this not the expected behavior cause you have "this.renderSprites = false;" by default in renderTargetTexture class. Now if you uncomment the renderManager updated fonction you should have the correct behavior : no more sprite shadows. The correction is simply to add the "if(renderSprites) {". Without this line, this boolean is not used... I hope I am clear enough Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 26, 2015 Share Posted January 26, 2015 Crystal clear Fix is on its way! thank you so much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.