While I was reading “Ray tracing in one weekend” mini book during my spare time, I decided to do it in ShaderToy. The shader supports three different materials: Lambertian, Specular, and Dielectric. Its performance on PCs is acceptable in my point of view. You can find the shader toy here: