Lights
- class geometries.s2e.lights.constDirLight.ConstDirLight.ConstDirLight(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 (Vector4) – 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.s2e.lights.constDirLight.ConstDirLight.ConstDirLight.ConstDirLight
Constructor.
- geometries.s2e.lights.constDirLight.ConstDirLight.ConstDirLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- static geometries.s2e.lights.constDirLight.ConstDirLight.ConstDirLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.s2e.lights.esun.ESun.ESun(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.s2e.lights.esun.ESun.ESun.ESun
Constructor.
- geometries.s2e.lights.esun.ESun.ESun.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- static geometries.s2e.lights.esun.ESun.ESun.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.s2e.lights.localPointLight.LocalPointLight.LocalPointLight(color, intensity=1, position)
Light at infinity in the positive E-direction
Constructor
- Arguments:
color (Color) – the color of the light
intensity (number) – the intensity of the light
position (Point) – the position of the light
- geometries.s2e.lights.localPointLight.LocalPointLight.LocalPointLight.LocalPointLight
Constructor
- geometries.s2e.lights.localPointLight.LocalPointLight.LocalPointLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- static geometries.s2e.lights.localPointLight.LocalPointLight.LocalPointLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.s2e.lights.pointLight.PointLight.PointLight(color, intensity=1, position)
Light at infinity in the positive E-direction
Constructor
- Arguments:
color (Color) – the color of the light
intensity (number) – the intensity of the light
position (Point) – the position of the light
- geometries.s2e.lights.pointLight.PointLight.PointLight.PointLight
Constructor
- geometries.s2e.lights.pointLight.PointLight.PointLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- static geometries.s2e.lights.pointLight.PointLight.PointLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –