Also on my website.Part 1
Part 2:
This tutorial goes into the vertical stretch fix mentioned in
Part 1, expands the shader to include a bottom hemisphere, and addresses a question I received regarding how to lower (or raise) the horizon.
Reflected Sky
For a sky dome that only has one hemisphere, or has the bottom reflect the top, the node tree with the vertical stretch fixed looks like this.
Expanding to Two Hemispheres
The whole tree:
Starting with:
The vertical fix:
Setup for second hemisphere:
If you don’t need to raise or lower the horizon, you can stop here. Just connect that last 1-x to the bottom of the Append before the Texture Sample.
Lowering or Raising the Horizon
Do be aware that this will stretch the texture a bit, especially at the very bottom of the sphere, where you’ll see the texture get pinched at the south pole, so this is only recommended if the player will never see it.
Finally, plug it into the Append before the Texture Sample:
Result:
I hope you guys are finding these useful, I know I sure have. If like what you’re seeing, or even if you don’t, please leave a comment!
Replies