@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
Parameter | Type |
---|---|
context | RenderContext |
Returns
RenderModuleContext
| Promise
<RenderModuleContext
>
Defined in
@novorender/core3d/modules/index.ts:14
Properties
kind
readonly kind: string;
Human readable name of module.