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: 0-1.

Spatial default: 0.2

colorGradingLutSize

Sets the size of the internal and external color grading lookup textures (LUTs). Do not exceed 64 for performance reasons.

Default: 32

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: 1-8

Spatial default: 4

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: 1.0

shadowDistance

Maximum shadow rendering distance in meters. Longer distance will cause lower shadow quality.

Spatial default: 30m

shadowNormalBias

Controls distance at which the shadow casting surfaces will be shrunk along the surface normal. Useful for avoiding false self-shadowing artifacts.

Default: 1.0

supportsCameraDepthTexture

If enabled the pipeline will generate camera's depth that can be bound in shaders as _CameraDepthTexture.

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 _CameraOpaqueTexture.

supportsHDR

Controls the global HDR settings.

Events

beginMainCameraRendering

Event called when the main camera starts rendering. (RenderPipelineManager.beginCameraRendering)