Skip to main content
2 of 2
edited title

How to Render Moon Phases from a Texture2D in Unity Using a Script?

I have a Texture2D of the Moon, and I want to render different moon phases so that it visually matches the examples shown here Celestial Programming : Moon Phase Image Rendering, I've tried several approaches, but I haven’t succeeded so far.

So, is it possible to achieve this using a unity script and Texture2D?

For reference, here’s my Moon texture:

enter image description here