Hello, everyone.
Is there any ways to implement shadows on viewport frames?
Like, any workarounds that are efficient?
Sincerely,
-coolguyweir
Hello, everyone.
Is there any ways to implement shadows on viewport frames?
Like, any workarounds that are efficient?
Sincerely,
-coolguyweir
Putting aside the category of this post as it has been mentioned above multiple times, I’ll go ahead and answer the original question.
Given how Roblox renders shadows and ViewportFrames, I find it highly unlikely that they will directly implement shadows directly into them. As is, ViewportFrames functionally act as unshaded 3D environments, showing only textures loaded from memory rather than rasterizing shadows for it - this is why you can’t use EnvMap within them - because of this, they are able to get away with a far smaller performance impact on the client, freeing up memory and CPU/GPU clock cycles for more important tasks, and giving extra headroom for games which are unoptimized to work within.
At the moment, there are a few potential ways around this I can think of:
Hope this helps!
I would think “simple” way to do this is to raycast
a lot. Get the vertices and raycast from there later on adding som dark triangles on where the shadow ray hit.
Here’s a problem though… LAAAAGGGG
cool, hope u finish recreating the roblox shadow viewport, i’d use it for my works