Im working on project where we do nigh/day cycles - during 10-20 seconds for one day.
Can i use anyting but realtime lighting here? any mixed? and/or any use of light probes?
It is very low poly scene - with simple house and trees on a plane - but we need the lighting to be as realistic as possible.
We are using LWRP - are there any occlusion probes or similar that can work in LWRP?
It’s hard to know what is “best”, but I would probably approach this by doing the direct light in real-time and parameterizing the indirect lighting with spherical harmonics (i.e. basically a big light probe to approximate your sky). Bake out an indirect lightmap for each of the spherical harmonic coefficients. There are 9 so you baking will take some time, and you will end up with 3 maps (pack a different coefficient in each RGB channel), but that is the cost of partially pre-computing your dynamic lighting. To make it a bit easier you could write an editor script to automate the baking and merging; then just start it up and let it bake everything out.
At runtime, you can align a (disabled) white directional light to your sun direction and add it to a SphericalHarmonicsL2 object. That will calculate the weighting for each of the coefficients for you. Then, use a standard lit Shader Graph and multiplies out each lightmap, multiply it by your sunlight color, and just add it as emissive light to your output node.
If that’s too much texture memory for your application, you could use Valve’s 3 vector tangent basis instead (search for “Radiosity Normal Maps”). It uses only 3 coefficients for 3 different light directions so it can be packed into a single 3-channel lightmap, but it will give correspondingly less convincing results. Will be faster to bake out though.
If you parameterize your lighting in the lightmaps, you will need to do it for any light probes that you might want to use on dynamic objects too. Which means baking and saving out 9 different sets of light probes coefficients, and using the coefficient weights to set the actual values of your light probes every frame. That will be an extra cost if you need any dynamic objects in your scene to pick up the indirect lighting.
Here is a spherical harmonic skybox shader to get your started if you want to try baking out the different coefficients to see what they look like in your scene: