Skip to main content

@novorender/web_app / createTransparentHighlight

Function: createTransparentHighlight()

function createTransparentHighlight(opacity): RGBATransform

Create a highlight color transform that replaces material opacity.

Parameters

ParameterTypeDescription
opacitynumberNew material opacity between 0 and 1, where 0 is 100% transparent and 1.0 is 100% opaque.

Returns

RGBATransform

Defined in

@novorender/web_app/highlight.ts:21