Appearance
copper3d / Modules / Renderer/baseRenderer / baseRenderer
Class: baseRenderer
Renderer/baseRenderer.baseRenderer
Hierarchy
baseRenderer
Table of contents
Constructors
Properties
- cameraFolder
- container
- currentScene
- gui
- options
- pmremGenerator
- renderer
- state
- stats
- visualCtrls
- visualiseFolder
Methods
Constructors
constructor
• new baseRenderer(container
, options?
)
Parameters
Name | Type |
---|---|
container | HTMLDivElement |
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
Name | Type |
---|---|
environment | environmentType |
Returns
Promise
<unknown
>
Defined in
src/Renderer/baseRenderer.ts:109
getCurrentScene
▸ getCurrentScene(): baseScene
Returns
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
Name | Type | Default value |
---|---|---|
clearColor | number | 0x000000 |
alpha | number | 0 |
Returns
void
Defined in
src/Renderer/baseRenderer.ts:137
updateEnvironment
▸ updateEnvironment(vignette?
): void
Parameters
Name | Type |
---|---|
vignette? | customMeshType |
Returns
void
Defined in
src/Renderer/baseRenderer.ts:95
updateGui
▸ updateGui(): void
Returns
void