Renderer · function

createGlobalField

Allocate a field. Called once; composeGlobalField fills it and allocates nothing.

Explained in Hello world.

function createGlobalField(resolution: number, cascades: number): GlobalField
import { createGlobalField } from '@driftengine/core';

Parameters

ParameterTypeDescription
resolutionnumber
cascadesnumber