Skip to main content

@novorender/web_app / RenderModule

Interface: RenderModule

A render module factory object.

Remarks

The render module should be able to gracefully recreate its context from a new render context whenever a lost GL context is restored.

Methods

withContext()

withContext(context): RenderModuleContext | Promise<RenderModuleContext>

Create a new instance for a given render context.

Parameters

ParameterType
contextRenderContext

Returns

RenderModuleContext | Promise<RenderModuleContext>

Defined in

@novorender/core3d/modules/index.ts:14

Properties

kind

readonly kind: string;

Human readable name of module.

Defined in

@novorender/core3d/modules/index.ts:11