Skip to main content

interface.RenderModule

API > 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.

Properties

kind

readonly kind: string

Human readable name of module.

Source

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

Methods

withContext

withContext(context): RenderModuleContext | Promise\< RenderModuleContext >

Create a new instance for a given render context.

Parameters

ParameterType
contextRenderContext

Returns

RenderModuleContext | Promise\< RenderModuleContext >

Source

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