IGraphicsService
Graphics Service
Interface
This service provides access to all render pipeline asset related functionality: Lighting, shadows, quality, etc.
Properties
cascadeBorder | The distance of the last cascade in. Range: Spatial default: |
colorGradingLutSize | Sets the size of the internal and external color grading lookup textures (LUTs). Do not exceed 64 for performance reasons. Default: |
colorGradingMode | Defines how color grading will be applied. Operators will react differently depending on the mode. |
mainLightShadowmapResolution | Resolution of the main light shadowmap texture. If cascades are enabled, cascades will be packed into an atlas and this setting controls the maximum shadows atlas resolution. |
maxAdditionalLightsCount | Additional lights support. Range: Spatial default: |
msaaSampleCount | Controls the global anti aliasing settings. We recommend not to use more than 4x MSAA for performance reasons. |
opaqueDownsampling | The downsampling method that is used for the opaque texture. |
shadowDepthBias | Controls the distance at which the shadows will be pushed away from the light. Useful for avoiding false self-shadowing artifacts. Default: |
shadowDistance | Maximum shadow rendering distance in meters. Longer distance will cause lower shadow quality. Spatial default: |
shadowNormalBias | Controls distance at which the shadow casting surfaces will be shrunk along the surface normal. Useful for avoiding false self-shadowing artifacts. Default: |
supportsCameraDepthTexture | If enabled the pipeline will generate camera's depth that can be bound in shaders as |
supportsCameraOpaqueTexture | If enabled the pipeline will copy the screen to texture after opaque objects are drawn. For transparent objects this can be bound in shaders as |
supportsHDR | Controls the global HDR settings. |
Events
beginMainCameraRendering | Event called when the main camera starts rendering. (RenderPipelineManager.beginCameraRendering) |