Hello all, I am using a custom skybox shader and is it possible to use the meta pass for the skybox so the lightbaker could use different settings etc. for baking. thanks in advanced for any help!
It is not possible, no. You can however set the skybox to whatever you want it to be during baking, then swap the skybox to something else at runtime. You just can't use the auto generate option in the lighting panel as changing the skybox will restart the light baking. Alternatively you could override the skybox with a script component during play mode, which won't restart the lightmap baking. But it means it'll be using the "baking" skybox while you're editing the scene. Code (csharp): using System.Collections; using System.Collections.Generic; using UnityEngine; public class ReplaceSkybox : MonoBehaviour { public Material skyboxReplacementMaterial; void OnEnable() { if (skyboxReplacementMaterial != null) RenderSettings.skybox = skyboxReplacementMaterial; } }