Skip to content

copper3d / Modules / Renderer/baseRenderer / baseRenderer

Class: baseRenderer

Renderer/baseRenderer.baseRenderer

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new baseRenderer(container, options?)

Parameters

NameType
containerHTMLDivElement
options?ICopperRenderOpt

Defined in

src/Renderer/baseRenderer.ts:31

Properties

cameraFolder

Private cameraFolder: null | GUI

Defined in

src/Renderer/baseRenderer.ts:29


container

container: HTMLDivElement

Defined in

src/Renderer/baseRenderer.ts:15


currentScene

currentScene: baseScene

Defined in

src/Renderer/baseRenderer.ts:20


gui

gui: null | GUI

Defined in

src/Renderer/baseRenderer.ts:17


options

options: undefined | ICopperRenderOpt

Defined in

src/Renderer/baseRenderer.ts:23


pmremGenerator

pmremGenerator: PMREMGenerator

Defined in

src/Renderer/baseRenderer.ts:21


renderer

renderer: WebGLRenderer

Defined in

src/Renderer/baseRenderer.ts:16


state

Private state: stateType

Defined in

src/Renderer/baseRenderer.ts:24


stats

stats: Stats

Defined in

src/Renderer/baseRenderer.ts:18


visualCtrls

Private visualCtrls: GUIController<object>[] = []

Defined in

src/Renderer/baseRenderer.ts:28


visualiseFolder

Private visualiseFolder: null | GUI

Defined in

src/Renderer/baseRenderer.ts:27

Methods

addGui

addGui(): void

Returns

void

Defined in

src/Renderer/baseRenderer.ts:141


closeGui

closeGui(): void

Returns

void

Defined in

src/Renderer/baseRenderer.ts:133


getCubeMapTexture

Private getCubeMapTexture(environment): Promise<unknown>

Parameters

NameType
environmentenvironmentType

Returns

Promise<unknown>

Defined in

src/Renderer/baseRenderer.ts:109


getCurrentScene

getCurrentScene(): baseScene

Returns

baseScene

Defined in

src/Renderer/baseRenderer.ts:127


hideGui

hideGui(): void

Returns

void

Defined in

src/Renderer/baseRenderer.ts:130


init

init(): void

Returns

void

Defined in

src/Renderer/baseRenderer.ts:83


setClearColor

setClearColor(clearColor?, alpha?): void

Parameters

NameTypeDefault value
clearColornumber0x000000
alphanumber0

Returns

void

Defined in

src/Renderer/baseRenderer.ts:137


updateEnvironment

updateEnvironment(vignette?): void

Parameters

NameType
vignette?customMeshType

Returns

void

Defined in

src/Renderer/baseRenderer.ts:95


updateGui

updateGui(): void

Returns

void

Defined in

src/Renderer/baseRenderer.ts:199