I’m using the SkyboxBlended shader from the wiki to ( surprise ) fade from one sky to another.
My problem is, say I fade from a prure red sky to a pure blue, that I would like my fog color to change as well. Making the fog color match the sky color.
I’ve been reading the shaderlab documentation over and over trying to figure it out, but I’m lost.
Does anyone have a clever solution for that problem.
I was thinking something like that. But getting the color value from the shader just seems more logic to me. But again I have never written a shader before.
If it can´t be done through the shader (I don´t know?), I would think you use a specific fog color for sky1 and for sky2. If you know how much time the blending will take I would probably experiment with Color.Lerp on those 2 colors and see what it looks like.