Contents

inputValues

Initial values for the inputs that the shader graph declares.

Declaration

var inputValues: [String : MaterialParameters.Value]

Discussion

Each entry binds a graph input by name to a starting value. The engine applies these values when a PortalMaterial is first created from the resulting program; you can change any of them at runtime by calling setParameter(name:value:).

Inputs that the graph declares as function constants belong in constantValues instead.

See Also

Configuring the shader program