Vsm

data class Vsm(val anisotropy: Int = 1, val mipmapping: Boolean = false, val msaaSamples: Int = 1, val highPrecision: Boolean = false, val lightBleedReduction: Float = 0.0f) : Shadows

Variance Shadow Maps — pre-filterable soft edges, good with many receivers.

Constructors

Link copied to clipboard
constructor(anisotropy: Int = 1, mipmapping: Boolean = false, msaaSamples: Int = 1, highPrecision: Boolean = false, lightBleedReduction: Float = 0.0f)

Properties

Link copied to clipboard

Anisotropic filtering exponent for the shadow map (texture is 2^n wider).

Link copied to clipboard

Use a 32-bit shadow texture instead of 16-bit (reduces light bleed).

Link copied to clipboard

Cuts VSM's characteristic light bleeding; 0..1.

Link copied to clipboard

Generate mipmaps for the VSM shadow map.

Link copied to clipboard

MSAA sample count used when rendering the shadow map (1 = off).