occlusionTexture property

Texture? get occlusionTexture

Optional ambient-occlusion texture (R channel). Defaults to white when null.

Accepts a gpu.Texture or a RenderTexture (sampled live).

Implementation

gpu.Texture? get occlusionTexture => resolveTextureSource(_occlusionSource);
set occlusionTexture (Object? value)

Implementation

set occlusionTexture(Object? value) =>
    _occlusionSource = checkTextureSource(value, 'occlusionTexture');