Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark side of the moon #17

Open
gilescope opened this issue May 28, 2022 · 1 comment
Open

Dark side of the moon #17

gilescope opened this issue May 28, 2022 · 1 comment

Comments

@gilescope
Copy link

Would be cool if we could create an example of lighting half the world but leaving the other half in darkness.

@JonahPlusPlus
Copy link
Owner

You can do this by changing the ray_origin of AtmosphereMat. For example, changing swapping the Y and Z axis so it becomes (0, 0, 6372e3):
Screenshot 2022-05-28 160055
This changes the plane the atmosphere rests on to be on the Z axis instead of the Y axis. It's not exactly cutting the world into two separate halves, but I find it hard to justify adding such a niche feature into the crate. If you need a certain aesthetic, it might be better to fork the crate and implement your own solution, such as creating a round cube in Blender and cutting it into two meshes and apply two separate AtmosphereMat to the meshes, one for day and night.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants