Kuesa Runtime

ShadowCastingLight QML Type

Encapsulate a light object that is able to cast shadows in a Qt 3D scene. More...

Since: Kuesa 1.3
Instantiates: ShadowCastingLight

Properties

Detailed Description

Shadow are currently only supported with Qt3D running with the OpenGL backend which supports geometry shaders when running on devices supporting OpenGL 3.2 or OpenGL ES 3.2. When Qt3D is using the Qt RHI (rendering abstraction interface) backend. shadows are not supported due to the lack of geometry shader support in RHI.

Property Documentation

castsShadows : bool

Specifies whether or not the light casts shadows.


nearPlane : float

Holds the distance from the light at which it should begin casting shadows. Setting this as large as possible while still including all shadow-casting objects will increase the precision of the shadowMap depth texture, reducing self-shadowing and "shadow-acne"


shadowMapBias : float

Holds the amount to offset the shadow map perpendicular to the surface when checking whether a surface is in shadow. This helps eliminate self-shadowing and "shadow-acne". Larger values reduce these effects but if the value is too large, objects can appear to float above their shadows.


softShadows : bool

Determines whether shadow edges are soft or hard. Soft shadows look more realistic but can impact rendering performance


textureSize : QSize

Specifies the size of the texture to use for the shadowmap. Larger textures result in higher quality shadows