Vixen
02b45cc4
csharp
public record class SubsurfaceShading

Wrapped diffuse and back-lighting: skin, wax, leaves, thin cloth.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The parameters here describe the model rather than the surface, which is the split the two slots exist for: how far light wraps past the terminator is one number for the whole material, where how thick the surface is varies over it and belongs to SubsurfaceFeature.

Fields and properties (3)

  • public float Wrap

    How far past the terminator light wraps, 0..1. Zero is Lambert.

  • public float TransmissionPower

    How tightly the back-lit lobe hugs the view direction.

  • public string ShaderName

    The Raven shader implementing the model, from Raven/Library/Material.

Methods (1)

  • public void Compile(MaterialCompilationContext context)

    Writes the model's own parameters — a wrap width, a cel ramp's step count.

Used by (3)

  • MaterialShadingVixen.Rendering
  • TypeRegistrationVixen.Rendering
  • Vixen_Rendering_Materials_SubsurfaceShadingSerializerVixen.Rendering