I have a TeleportPart. When the player teleports there is a half second where the lighting shadows have to load. I’m not sure if this is possible, but is there a way to pre-bake lighting shadows for a certain area? For example if I detect a player is nearing a teleport part I will bake the lighting for the area they teleport to.
Is there any way to achieve something where the shadows are there as soon as the player teleports?
I think you can use this, but I’ve never tried it. Focus should be the
" The Camera Focus is a CFrame that determines the area in 3D space the graphics engine will prioritize.
Certain graphical operations Roblox performs, such as updating lighting, can take a lot of time or computational effort to complete. Focus tells Roblox the area in 3D space to prioritize when performing such operations. For example dynamic lighting from objects such as PointLights may not render at distances far from the Focus."
add teleport have a duration, for example when player touches part, then it gives white screen and waits 3 seconds, then screen is getting back normal, this time is enough to preload shadows, or use streaming
This is the closest solution there is to “preloading shadows”.
Shadows are rendered in real-time based on the position of the sources of light and the objects in the game. Shadows aren’t static assets that can be preloaded, as they change dynamically based on the game environment.