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:
Name | Type | Description |
---|---|---|
cclusionProbes | Vector4[] | The array of probe occlusion values to copy from. |
Usage
---@type MaterialPropertyBlock
local materialpropertyblock;
---@type Vector4
local cclusionProbes;
materialpropertyblock.CopyProbeOcclusionArrayFrom(cclusionProbes)