occlusionTexture property
TextureSource?
get
occlusionTexture
Optional ambient-occlusion texture (R channel). Defaults to white when null.
Accepts a Texture2D or a RenderTexture (sampled live).
Implementation
TextureSource? get occlusionTexture => _occlusionTexture;
set
occlusionTexture
(TextureSource? value)
Implementation
set occlusionTexture(TextureSource? value) {
if (identical(_occlusionTexture, value)) return;
_occlusionTexture = value;
_markMaterialDataDirty();
}