r/computergraphics • • Jun 07 '18

A Tutorial On Create A SUBSURFACE SCATTERING Shader (all info in the comment!)

75 Upvotes

5 comments sorted by

16

u/AlanZucconi Jun 07 '18

Hey all!

Most (if not all) optical phenomena that materials exhibit can be replicated by simulating how the individual rays of light propagate and interact. This approach is referred in the scientific literature as ray tracing, and it is often too computationally expensive for any real-time application. Most modern engines rely on massive simplifications that, despite being unable to reproduce photorealism, can produce a believable approximation. This tutorial introduces a fast, cheap and convincing solution that can be used to simulate translucent materials which exhibit subsurface scattering.

It includes everything you need to know: theory, geometry, texture generation and shader code.

The approach described in this tutorial is based on the solution presented at GDC 2011 by Colin Barré-Brisebois and Marc Bouchard in a talk called Approximating Translucency for a Fast, Cheap and Convincing Subsurface Scattering Look. Their solution is integrated into the Frostbite 2 engine, which was used for DICE’s Battlefield 3. While not being physically accurate, the approach presented by Colin and Marc produces very believable results at a very small cost.

If you have any question, let me know! ♥

1

u/BrunoSG Jun 08 '18

It's the people like you that I aspire to be like some day. Great work!

2

u/AlanZucconi Jun 09 '18

Aww thank you so much! Comments like this one are what makes me want to keep writing tutorials!

No matter how inexperienced you are, you always have something you can teach to someone. I started because of this very reason.

2

u/leftofzen Jun 08 '18

There is NO NEED TO SHOUT.

1

u/AlanZucconi Jun 09 '18

SUBSURFACE SCATTERING is so cool that we need to shout!