Jump to content

Missing if in rendering manager ?


Lerige
 Share

Recommended Posts

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  :)

 

++

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...