Three.V8

3D rendering engine using JavaScript as user script.

View on GitHub

<–Home

class HemisphereBackground

A background that has a sky color and a ground color.

class HemisphereBackground extends Background

Inheritance Background –> HemisphereBackground

Name Description
Constructors  
HemisphereBackground() Creates a new HemisphereBackground.
Properties  
setSkyColor Sky color of the background.
groundColor Ground color of the background.
Methods  
getSkyColor Get the value of .skyColor
setSkyColor Set the value of .skyColor

Constructors

HemisphereBackground()

HemisphereBackground()

Creates a new HemisphereBackground.

Properties

skyColor

.skyColor: Object

The sky color of the background.

Read-only. Use the method .setSkyColor to modify this property.

groundColor

.groundColor: Object

The ground color of the background.

Read-only. Use the method .setGroundColor to modify this property.

Methods

getSkyColor()

.getSkyColor(color: Vector3) : Vector3

Copy the value of .skyColor into color.

setSkyColor()

.setSkyColor(color: Vector3): undefined

Set the value of .skyColor according to color.

.setSkyColor(r: Number, g: Number, b: Number ): undefined

Set the value of .skyColor according to the r, g, b values.