Recently, I made Customizable Planet Shaders and decided to post it on the asset store. The shader has been designed to be fast and high-quality, while also giving a lot of control to the artist. The shader was made in Shader Forge so it can be edited easily, and the shader is compatible with DirectX 9+ and OpenGL 2.0+, so the shader is compatible with a wide range of hardware. The shader also performs well, getting 50-60 FPS on a Moto X 2014 at 720p, and ~60 FPS on a Galaxy S7 at 1080p.
Features: - A new mobile shader for better performance!
Diffuse, normal, and specular maps are all here and available.
Cloud layer is available, and the movement speed of the clouds can be changed.
Heightmaps can be added to give the planet real depth and height.
The atmosphere color and density is fully available for you to control.
Along with that, the package comes with a ring shader, with three different meshes. and a demo scene that includes recreations of all the planets of the solar system. (Textures for planets are protected under Creative Commons International 4.0 License, and are available for download from: Solar Textures | Solar System Scope)
A slight bug has been discovered with update 1.0.1 where the sun direction was flipped.
An update fixing this bug has been uploaded and is being reviewed.
The update will bring a second planet shader designed specifically for lower end hardware, such as integrated graphics or mobile devices, while keeping the high-quality look of the standard shader. This shader is very similar in looks, but yields approximately 10-20% better performance.
Since I can’t find any way to improve the package, and I don’t have the time to update the package as much as I’d like due to college, I have decided that the package is now free.
I will still try to help support the package, but for the most part, I think this package is relatively well rounded.
I’ve considered making a version 2 of this shader that’s instead built upon Amplify Shader Editor, which supports HDRP and LWRP, and allows for better compatibility with different platforms. However, at the same time, I’ll likely leave this version open, for people who still use Shader Forge.
It’s generally something I’d consider if people have interest in it.
Due to a user request, a version 1.2 of the shaders is coming out.
This new version will allow for city lights on the dark side of planets. The color and intensity of the lights can be adjusted, and the lights will be blocked by clouds to make the effect appear more realistic.
Okay. I checked the planet shader and for whatever reason, when no albedo texture is set the shader defaults to black. That was a poor decision on my part and I apologize. I’ll be shortly sending a private message to you with the newest update so you can work immediately. The update will also be getting sent to the Asset Store as well.
Very apologetic for not responding sooner. I hadn’t gotten any notification for when you posted. Anyways, regarding your question, the ring shader actually does support shadows-casting them, at least. I noticed that the image of Saturn above showed the rings lacking shadows and have updated it. While casting shadows is easy, getting transparent objects to receive shadows is a very complicated task, and even if one gets it working, it typically causes very poor performance. For that reason, it has been excluded. I am sorry in that regard.
[quote=“Proxy_Games, post:19, topic: 719787, username:Proxy_Games”]
Very apologetic for not responding sooner. I hadn’t gotten any notification for when you posted. Anyways, regarding your question, the ring shader actually does support shadows-casting them, at least. I noticed that the image of Saturn above showed the rings lacking shadows and having updated it. While casting shadows is easy, getting transparent objects to receive shadows is a very complicated task, and even if one gets it working, it typically causes very poor performance. For that reason, it has been excluded. I am sorry in that regard.
[/quote]Thanks for reply, but there is nothing to worry about: I got ring shadow algorythm from Microsoft GalaxyExplorer