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
Parameter | Type |
---|---|
context | RenderContext |
Returns
RenderModuleContext
| Promise
\< RenderModuleContext
>