Skip to content

Xerxes1138/ScreenSpaceSubsurfaceScattering

Repository files navigation

ScreenSpaceSubsurfaceScattering

SSSS

Features

  • SubSurface Scattering (SSS) blur is performed in screen space
  • SSS attenuation can be defined by a color or a texture
  • Transmittance
  • Not limited to skin

Limitations

  • Deferred shading only
  • Terrain is not supported
  • Ambient occlusion and screen space reflection from post processing stack are not supported

Requirements

Unity 2017.2.0f3 and a shader model 3.0 ( dx9 ) graphic card.

How to use

Set project in Linear Color space and make sure that under ProjectSettings/Graphics it is setup like the image below

GraphicsSettings

See pref_CameraRig for reference on how to setup ScreenSpaceSubSurfaceScattering.cs on your camera (should always be the first effect to be used)

Existing surface shader need to be updated, see SurfaceShaderSSSTemplate.shader and SurfaceShaderTemplate.shader as guide

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors