SpatialMaterial.DistanceFadeMode

Values

ValueMeaning
distanceFadeDisabled0

Do not use distance fade.

distanceFadePixelAlpha1

Smoothly fades the object out based on each pixel's distance from the camera using the alpha channel.

distanceFadePixelDither2

Smoothly fades the object out based on each pixel's distance from the camera using a dither approach. Dithering discards pixels based on a set pattern to smoothly fade without enabling transparency. On certain hardware this can be faster than constant DISTANCE_FADE_PIXEL_ALPHA.

distanceFadeObjectDither3

Smoothly fades the object out based on the object's distance from the camera using a dither approach. Dithering discards pixels based on a set pattern to smoothly fade without enabling transparency. On certain hardware this can be faster than constant DISTANCE_FADE_PIXEL_ALPHA.

Meta