sceneInputs property

  1. @override
Set<RenderInput> get sceneInputs
override

Per-frame engine inputs this material samples, produced only when a visible material asks for them: RenderInput.depth binds the linear scene depth of the opaque geometry (forcing the depth prepass), and RenderInput.opaqueSceneColor binds a snapshot of the scene color taken after the opaque phase (splitting the scene pass in two). Together they enable refraction, depth-fade absorption, shoreline foam, and soft-particle style effects on translucent surfaces. The base material requests nothing; a .fmat material declares these with engine_inputs:.

Implementation

@override
Set<RenderInput> get sceneInputs =>
    softDepthFade > 0.0 ? const {RenderInput.depth} : const <RenderInput>{};