Skip to content

RayCastSphere

Download Installer

This Fuse is based on the Shadertoy 'RayCastSphere' by diroru. © diroru (CC BY-NC-SA 3.0). Conversion to DCTL and encapsulation into a fuse done by JiPi. See Planet for more fuses in this category.

RayCastSphere Thumbnail

A good example of displacement.

screenshot

To use this Fuse you need two images as an input, one for Surface texture (Image) and one for the displacement (depth).

There are no parameters yet except for the background color.

An interesting realization of the displacement

float displacement = texture(iChannel1, latlon).r*100.0;
        if (d <= sphereRadius + displacement && d > 0.0) {

            fragColor = texture(iChannel0, latlon).xxxx;

            break;
        }

Have fun