InputExtraction.GetShadowmaskChannelsFromLightIndices

Declaration

public static int[] GetShadowmaskChannelsFromLightIndices(LightTransport.InputExtraction.BakeInput bakeInput, int[] lightIndices);

Parameters

bakeInput The BakeInput which the passed light indices belong to.
lightIndices The light indices of the lights to get the shadowmask channels of.

Returns

int[] An array containing the shadowmask channel of each input light.

Description

Get's the associated baked shadowmask channels of the mixed lights with the specified indices. Use this together with InputExtraction.ComputeOcclusionLightIndicesFromBakeInput.

The resulting channels will be in the range [0;3], representing color channels red, green, blue and alpha respectively. The only exception is a value of -1, which indicates that the light has no shadowmask channel.


Did you find this page useful? Please give it a rating: