JCF Fancy Glass (Blender - Cycles/Eevee)
JCF Fancy Glass
===============
Simply append either the JCF Fancy Glass material or node group to your project.
Features
--------
Chromatic dispersion in Cycles and Eevee!
Colored dispersed caustics in Cycles - you can even simulate a prism if you have the time.
Individual control of the color and roughness of the refraction and inner/outer glossy settings.
Tips
----
Keep the dispersion value pretty low, from 0.0 to 0.1 (it's actually the "B" term of Cauchy's equation). I haven't added any limitations. Go nuts with it.
If you're tuning your glossy settings with Fresnel, keep the IOR the same as the glass's IOR.
Add an absorption volume for extra realism.
Most of the time, keep your inner glossy color very close to pure white. It controls how much energy is absorbed with each internal bounce and can run away quickly. Try something like HSV(0.231, 0.069, 0.950), which will give it that nice green tint when rays get trapped edge-on. Notice how bright and desaturated that color setting is. Conversely, you can simulate the subtle UV glow of uranium glass by setting the inner glossy color to a similar green, but with the value *over* 1.0 (say, 1.02).
Render Settings
---------------
Sampling:
Render: Lots. At least 1024.
Adaptive Sampling: Enabled
Noise Threshold: 0.001 for a good preview, somewhere around 0.00025 for near final
Denoising: OIDN, but if you can spare the time and RAM use SID or set up your own noodles in the compositor
Light Paths:
Max Bounces:
Total: 48
Diffuse: 12
Glossy: 32
Transparency: 4
Transmission: 12
Volume: 4
Clamping:
Direct Light: 0
Indirect Light: 250 for low samples, up to around 1000 for high samples
Caustics:
Filter Glossy: 0
Caustics:
Reflective: Enabled
Refractive: Enabled
License
=======
This is licensed under the WTFPL (https://en.wikipedia.org/wiki/WTFPL). Do whatever you want with it. Just don't come after me if your cat explodes or something.