文档

Unity Engine

Unity Engine

ScaleSphericalHarmonicsL2

Scale an array of SphericalHarmonicsL2 probes.
阅读时间1 分钟最后更新于 2 小时前

Definition

public bool ScaleSphericalHarmonicsL2(IDeviceContext context, BufferSlice<SphericalHarmonicsL2> shIn, BufferSlice<SphericalHarmonicsL2> shOut, int probeCount, float scale)

Parameters

Device context.

Source buffer of SphericalHarmonicsL2 probes to scale.

Destination buffer where the scaled SphericalHarmonicsL2 probes are written.

probeCount

Number of SphericalHarmonicsL2 probes to scale.

scale

Scaling factor.

Returns

Type

Description

boolTrue if the operation was successfully added to the command queue on the context.

Remarks

shOut = shIn * scale.