SubSurfaceConfiguration

Contains all parameters needed for the prepass to perform screen space subsurface scattering

Hierarchy

  • SubSurfaceConfiguration

Index

Constructors

constructor

Find examples in Playground

Properties

metersPerUnit

Find examples in Playground
metersPerUnit: number

Defines the ratio real world => scene units. Used for subsurface scattering

ssDiffusionProfileColors

Find examples in Playground
ssDiffusionProfileColors: Color3[]

Diffusion profile colors for subsurface scattering You can add one diffusion color using addDiffusionProfile on scene.prePassRenderer See ... Note that you can only store up to 5 of them

Accessors

ssDiffusionD

Find examples in Playground
  • get ssDiffusionD(): number[]
  • Diffusion profile max color channel value for subsurface scattering

    Returns number[]

ssDiffusionS

Find examples in Playground
  • get ssDiffusionS(): number[]
  • Diffusion profile color for subsurface scattering

    Returns number[]

ssFilterRadii

Find examples in Playground
  • get ssFilterRadii(): number[]
  • Diffusion profile filter radius for subsurface scattering

    Returns number[]

Methods

addDiffusionProfile

Find examples in Playground
  • addDiffusionProfile(color: Color3): number
  • Adds a new diffusion profile. Useful for more realistic subsurface scattering on diverse materials.

    Parameters

    • color: Color3

      The color of the diffusion profile. Should be the average color of the material.

    Returns number

    The index of the diffusion profile for the material subsurface configuration

clearAllDiffusionProfiles

Find examples in Playground
  • clearAllDiffusionProfiles(): void
  • Deletes all diffusion profiles. Note that in order to render subsurface scattering, you should have at least 1 diffusion profile.

    Returns void

dispose

Find examples in Playground
  • dispose(): void
  • Disposes this object

    Returns void

Generated using TypeDoc