Jump to content

SPS and Shadow Test


Recommended Posts

Nothing to ask, just a little as I'm discovering how the shadows work :


Here, you've got a SPS with 1000 rotating boxes in a big box (line 29). They all cast shadows inside the big box while moving. The shadows are blurred and anti-aliased (Blur Variance) what is the smoothest rendering but also the most expensive one. That's what I wanted to test (to stress) with a big number of flying objects.

Moreover, the directional light is permanently set behing the cam when you move and orientated to the center of the big box. This forces the shadows to slide along the walls according to the light/camera current position.


This runs at 60 fps on my Chrome browser here :-)


[EDIT] just stressed it more : more than 7000 boxes with their shadows here and still 60 fps

I like this framework !

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.

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.


  • Recently Browsing   0 members

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