Lights
- class geometries.sol.lights.constDirLight.ConstDirLight.ConstDirLight(color, intensity=1, direction)
Constant local direction
Constructor.
- Arguments:
color (Color) – the color of the light
intensity (number) – the intensity of the light
direction (Vector3) – the direction of the light.
- geometries.sol.lights.constDirLight.ConstDirLight.ConstDirLight.ConstDirLight
Constructor.
- geometries.sol.lights.constDirLight.ConstDirLight.ConstDirLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- static geometries.sol.lights.constDirLight.ConstDirLight.ConstDirLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.sol.lights.localFakePointLight.LocalFakePointLight.LocalFakePointLight(color, intensity=1, position)
Light at infinity in the E-direction
Constructor.
- Arguments:
color (Color) – the color of the light
intensity (number) – the intensity of the light
position (Point) – the direction of the light. It should be on of the following values: - -1 (light coming from the negative direction) - +1 (light coming from the positive direction)
- geometries.sol.lights.localFakePointLight.LocalFakePointLight.LocalFakePointLight.LocalFakePointLight
Constructor.
- geometries.sol.lights.localFakePointLight.LocalFakePointLight.LocalFakePointLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- static geometries.sol.lights.localFakePointLight.LocalFakePointLight.LocalFakePointLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.sol.lights.zSun.ZSun.ZSun(color, intensity=1, direction)
Light at infinity in the E-direction
Constructor.
- Arguments:
color (Color) – the color of the light
intensity (number) – the intensity of the light
direction (number) – the direction of the light. It should be on of the following values: - -1 (light coming from the negative direction) - +1 (light coming from the positive direction)
- geometries.sol.lights.zSun.ZSun.ZSun.ZSun
Constructor.
- geometries.sol.lights.zSun.ZSun.ZSun.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- static geometries.sol.lights.zSun.ZSun.ZSun.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –