Renderer · function

irradianceLevelFor

Which level of a chain holds the cosine convolution.

Explained in Hello world.

function irradianceLevelFor(edge: number): number
import { irradianceLevelFor } from '@driftengine/core';

Parameters

ParameterTypeDescription
edgenumber

In depth

The level whose image is IRRADIANCE_EDGE across. For the default 256 edge that is level 5, and the chain stops there rather than carrying unread levels above it — texStorage3D takes a level count, so the three that would hold sixteen, four and one texel are never created. Six levels, 87,360 texels, 683 KB a layer at half float.