Jump to content

light.needRefreshPerFrame() seems broken


meteoritool
 Share

Recommended Posts

Hello,

This method was not taking any params and Here is why it has been removed: https://github.com/BabylonJS/Babylon.js/blob/087e898e334957ce17ecb0129d1da5c8459354b5/src/Lights/babylon.directionalLight.ts#L142

This was simply returning an hard coded boolean and not intented to be called but to allow external people to create their own light/shadow system. 

I am not for reverting this one :-) as it just adds code which does nothing.

This was also forcing the shadows matrix to refresh on every frame despite the position or direction cached in the light so basically removing it makes it also more performant.

@Deltakosh @meteoritool any thought ?

   
   
 
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...