Function createScreenSpaceReflectionCompositeTask
-
createScreenSpaceReflectionCompositeTask(
config: ScreenSpaceReflectionCompositeTaskConfig,
engine: EngineContext,
scene?: SceneContext,
): ScreenSpaceReflectionCompositeTaskParameters
- config: ScreenSpaceReflectionCompositeTaskConfig
- engine: EngineContext
Optionalscene: SceneContext
Returns ScreenSpaceReflectionCompositeTask
Create the composite of screen-space reflections into PBR materials. The geometry pass that feeds the reflections must list
createEnvironmentSpecularTextureDescription()(PBR materials only), which also makes its real color linear (before exposure, tone mapping and fog): this task replaces each material's environment specular by the reflections where they hit, weighted by the material's specular response, and keeps it elsewhere. Leave the reflections'environmentunset when the materials have image-based lighting; with one, its fallback replaces their environment specular everywhere it reflects. Add the task after the reflections and before image processing.