Skip to main content

interface.Core3DImports

API > Core3DImports

Interface: Core3DImports

Core3D bundler/build resource imports.

Remarks

In order to adapt to any build/bundler system and inlining preferences, we declare all non-javascript imported resources here. These must be created by some external function that is specific to your build/bundler environment.

Properties

loaderWorker

readonly loaderWorker: Worker

The scene load/parse worker.

Remarks

This worker root can be found in core3d/modules/octree/worker/index.ts.

See

Worker: Worker() constructor

Source

@novorender/core3d/imports/index.ts:35


readonly logo: ArrayBuffer

The watermark logo data.

Remarks

This file can be found in core3d/modules/watermark/logo.bin.

Source

@novorender/core3d/imports/index.ts:40


lutGGX

readonly lutGGX: TextureImageSource

The GGX shader lookup image.

Remarks

This image can be found in core3d/lut_ggx.png.

See

createImageBitmap

Source

@novorender/core3d/imports/index.ts:17


parserWasm

readonly parserWasm: ArrayBuffer

The web assembly instance.

Remarks

This web assembly can be found in @novorender/wasm-parser/wasm_parser_bg.wasm.

See

Loading and running WebAssembly code

Source

@novorender/core3d/imports/index.ts:29


shaders

readonly shaders: object

GLSL shader imports.

Remarks

The shaders can be found in core3d/imports/shaders.ts.

Type declaration

shaders.background

background: object

background.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = fragmentShader

render.vertexShader

readonly vertexShader: string = vertexShader

shaders.benchmark

benchmark: object

benchmark.fillrate

readonly fillrate: object

fillrate.fragmentShader

readonly fragmentShader: string = fillrate_frag

fillrate.vertexShader

readonly vertexShader: string = fillrate_vert

benchmark.pointrate

readonly pointrate: object

pointrate.fragmentShader

readonly fragmentShader: string = pointrate_frag

pointrate.vertexShader

readonly vertexShader: string = pointrate_vert

shaders.clipping

clipping: object

clipping.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = fragmentShader

render.vertexShader

readonly vertexShader: string = vertexShader

shaders.common

common: any

shaders.cube

cube: object

cube.intersect

readonly intersect: object

intersect.vertexShader

readonly vertexShader: string = intersect_vert

cube.line

readonly line: object

line.fragmentShader

readonly fragmentShader: string = line_frag

line.vertexShader

readonly vertexShader: string = line_vert

cube.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = render_frag

render.vertexShader

readonly vertexShader: string = render_vert

shaders.dynamic

dynamic: object

dynamic.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = fragmentShader

render.vertexShader

readonly vertexShader: string = vertexShader

shaders.grid

grid: object

grid.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = fragmentShader

render.vertexShader

readonly vertexShader: string = vertexShader

shaders.octree

octree: object

octree.debug

readonly debug: object

debug.fragmentShader

readonly fragmentShader: string = debug_frag

debug.vertexShader

readonly vertexShader: string = debug_vert

octree.line

readonly line: object

line.fragmentShader

readonly fragmentShader: string = line_frag

line.vertexShader

readonly vertexShader: string = line_vert

octree.point

readonly point: object

point.fragmentShader

readonly fragmentShader: string = point_frag

point.vertexShader

readonly vertexShader: string = point_vert

octree.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = render_frag

render.vertexShader

readonly vertexShader: string = render_vert

shaders.tonemap

tonemap: object

tonemap.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = fragmentShader

render.vertexShader

readonly vertexShader: string = vertexShader

shaders.toon

toon: object

toon.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = fragmentShader

render.vertexShader

readonly vertexShader: string = vertexShader

shaders.watermark

watermark: object

watermark.render

readonly render: object

render.fragmentShader

readonly fragmentShader: string = fragmentShader

render.vertexShader

readonly vertexShader: string = vertexShader

Source

@novorender/core3d/imports/index.ts:45


wasmInstance

readonly wasmInstance: WasmInstance

The web assembly instance.

Remarks

This web assembly can be found in core3d/wasm/main.wasm.

See

Loading and running WebAssembly code

Source

@novorender/core3d/imports/index.ts:23