Vixen
02b45cc4
csharp
public record class IrradianceFieldAsset

The irradiance field whose probes carry the scene's bounced light.

Read the guide page for this →

Remarks

[19](../../../docs/plan/19-lighting-and-global-illumination.md) § L2's node, on the same terms as GlobalDistanceFieldAsset: the field, its filler and its refinement policy are the host's, because they own device memory and a probe budget that outlive any one frame, and what a document chooses is where the fill happens and how much of it happens per frame.

A project that supplies no field gets a node that does nothing, and IndirectDiffuse's default Source answers "no indirect light, and the sun is not shadowed" — which its own remarks are careful to point out are two different right answers rather than one convenient zero.

Fields and properties (6)

  • public string Name

    The node's name, for debug groups and for a human reading the file.

  • public bool Enabled

    Whether the node runs.

  • public string Shader

    The shader whose compose slot the field's bindings are written under.

  • public int Budget

    How many probes are filled per frame.

  • public int DilationPasses

    How many times a filled probe's irradiance is dilated into its unfilled neighbours.

  • public string[] Passes

    Which passes read the field, by their shader names.

Used by (3)

  • CompositorBuilderVixen.Rendering
  • TypeRegistrationVixen.Rendering
  • Vixen_Rendering_Compositor_IrradianceFieldAssetSerializerVixen.Rendering