PipelineConfig Module
Functions and values
| Function or value |
Description
|
|
Default pipeline configuration: No shadows, no post-process, no default lighting.
|
Full Usage:
withDefaultLighting lighting pc
Parameters:
LightingState
pc : PipelineConfig
Returns: PipelineConfig
|
Provides a fallback lighting configuration. This lighting state is used for any frame where the view function does not explicitly submit a 'SetLighting' command.
|
Full Usage:
withLightingBinder binder pc
Parameters:
Effect -> Camera -> LightingState -> unit
pc : PipelineConfig
Returns: PipelineConfig
|
[Advanced] Overrides the internal logic for binding lighting data to shaders. Use this only if you are using completely custom shaders and need to manually map Mibo's lighting structures to your effect parameters.
|
Full Usage:
withPostProcess cfg pc
Parameters:
PostProcessConfig
pc : PipelineConfig
Returns: PipelineConfig
|
Enables and configures the post-processing pipeline phase.
|
Full Usage:
withPreRenderCallback cb pc
Parameters:
GraphicsDevice -> Camera -> LightingState -> unit
pc : PipelineConfig
Returns: PipelineConfig
|
[Advanced] Registers a callback to execute before the main render pass. Useful for global effect updates, compute shader dispatch, or custom depth pre-passes.
|
Full Usage:
withShader shaderBase assetName pc
Parameters:
ShaderBase
assetName : string
pc : PipelineConfig
Returns: PipelineConfig
|
Registers a custom shader asset to override a default internal shader (e.g., replacing 'PBRForward' with your own implementation).
|
Full Usage:
withShadows cfg pc
Parameters:
ShadowConfig
pc : PipelineConfig
Returns: PipelineConfig
|
Enables and configures the shadow rendering subsystem. Without this, no shadows will be rendered regardless of light settings.
|
|
Tunable performance setting for CPU Tiled Forward culling. 16: Tighter culling, higher CPU cost. Good for many small local lights. 32: Balanced default. 64: Faster CPU, looser culling. Good for fewer, larger lights.
|
Mibo