Skip to main content

MaterialPropertyBlock.CopyProbeOcclusionArrayFrom(Vector4[] cclusionProbes)

This function copies the entire source array into a Vector4 property array named unity_ProbesOcclusion for use with instanced Shadowmask rendering.

Parameters:

NameTypeDescription
cclusionProbesVector4[]The array of probe occlusion values to copy from.

Usage

---@type MaterialPropertyBlock
local materialpropertyblock;

---@type Vector4
local cclusionProbes;


materialpropertyblock.CopyProbeOcclusionArrayFrom(cclusionProbes)