3D Spherical Gradient Shader for Volume Density?

3D Spherical Gradient Shader for Volume Density?

astrofalcon
Participant Participant
1,109 Views
1 Reply
Message 1 of 2

3D Spherical Gradient Shader for Volume Density?

astrofalcon
Participant
Participant

Does anyone know how to make the equivalent of Cinema 4Ds 3D-Spherical Gradient Shader? I'm trying to use this shader for the density of an Arnold Volume Sphere. I'm trying to avoid making custom VDBs to get the effect I need... Ultimately I'm trying to create an atmosphere falloff or fadeout but in XYZ 3D space not just UV that I can pipe into the density parameter of a volume shader.

Thanks so much!!!

- Shawn

3d-gradient.png

0 Likes
1,110 Views
1 Reply
Reply (1)
Message 2 of 2

peter.horvath6V6K3
Advisor
Advisor

You need to control a ramp shader with the distance of the shading point. Try to build the following shader network: state_vector with Po -> length -> divide by the Sphere radius -> ramp_float.Input -> standard_volume.Density. Hope this helps.

0 Likes