Lights
- class geometries.hyp.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:
- geometries.hyp.lights.constDirLight.ConstDirLight.ConstDirLight.ConstDirLight
Constructor.
- geometries.hyp.lights.constDirLight.ConstDirLight.ConstDirLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- static geometries.hyp.lights.constDirLight.ConstDirLight.ConstDirLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.hyp.lights.localPointLight.LocalPointLight.LocalPointLight(position, color, intensity=1)
Point light
Constructor
- Arguments:
position (Point|Vector) – data for the position of the light - If the input in a Point, then the position is that point. - If the input is a Vector, then the position is the image of this vector by the exponential map at the origin.
color (Color) – the color of the light
intensity (number) – the intensity of the light
- geometries.hyp.lights.localPointLight.LocalPointLight.LocalPointLight.LocalPointLight
Constructor
- geometries.hyp.lights.localPointLight.LocalPointLight.LocalPointLight.color
type: Color
The color of the light.
- geometries.hyp.lights.localPointLight.LocalPointLight.LocalPointLight.intensity
type: number
The intensity of the light.
- geometries.hyp.lights.localPointLight.LocalPointLight.LocalPointLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- geometries.hyp.lights.localPointLight.LocalPointLight.LocalPointLight.isLocal
type: boolean
Says whether the shape is local. True if local, false otherwise
- geometries.hyp.lights.localPointLight.LocalPointLight.LocalPointLight.position
type: Point
The position of the light.
- static geometries.hyp.lights.localPointLight.LocalPointLight.LocalPointLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.hyp.lights.localTruePointLight.LocalTruePointLight.LocalTruePointLight(position, color, intensity=1)
Point light
Constructor
- Arguments:
position (Point|Vector) – data for the position of the light - If the input in a Point, then the position is that point. - If the input is a Vector, then the position is the image of this vector by the exponential map at the origin.
color (Color) – the color of the light
intensity (number) – the intensity of the light
- geometries.hyp.lights.localTruePointLight.LocalTruePointLight.LocalTruePointLight.LocalTruePointLight
Constructor
- geometries.hyp.lights.localTruePointLight.LocalTruePointLight.LocalTruePointLight.color
type: Color
The color of the light.
- geometries.hyp.lights.localTruePointLight.LocalTruePointLight.LocalTruePointLight.intensity
type: number
The intensity of the light.
- geometries.hyp.lights.localTruePointLight.LocalTruePointLight.LocalTruePointLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- geometries.hyp.lights.localTruePointLight.LocalTruePointLight.LocalTruePointLight.isLocal
type: boolean
Says whether the shape is local. True if local, false otherwise
- geometries.hyp.lights.localTruePointLight.LocalTruePointLight.LocalTruePointLight.position
type: Point
The position of the light.
- static geometries.hyp.lights.localTruePointLight.LocalTruePointLight.LocalTruePointLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.hyp.lights.pointLight.PointLight.PointLight(position, color, intensity=1)
Point light
Constructor
- Arguments:
position (Point|Vector) – data for the position of the light - If the input in a Point, then the position is that point. - If the input is a Vector, then the position is the image of this vector by the exponential map at the origin.
color (Color) – the color of the light
intensity (number) – the intensity of the light
- geometries.hyp.lights.pointLight.PointLight.PointLight.PointLight
Constructor
- geometries.hyp.lights.pointLight.PointLight.PointLight.color
type: Color
The color of the light.
- geometries.hyp.lights.pointLight.PointLight.PointLight.intensity
type: number
The intensity of the light.
- geometries.hyp.lights.pointLight.PointLight.PointLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- geometries.hyp.lights.pointLight.PointLight.PointLight.isLocal
type: boolean
Says whether the shape is local. True if local, false otherwise
- geometries.hyp.lights.pointLight.PointLight.PointLight.position
type: Point
The position of the light.
- static geometries.hyp.lights.pointLight.PointLight.PointLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.hyp.lights.sunLight.SunLight.SunLight(position, color, intensity=1)
Point light
Constructor
- Arguments:
position (Vector3) – position of the light. The light is a point at infinity with coordinates [u_x, u_y,u_z, 1], where u = (u_x,u_y_u_z) is unit vector in the same direction.
color (Color) – the color of the light
intensity (number) – the intensity of the light
- geometries.hyp.lights.sunLight.SunLight.SunLight.SunLight
Constructor
- geometries.hyp.lights.sunLight.SunLight.SunLight.color
type: Color
The color of the light.
- geometries.hyp.lights.sunLight.SunLight.SunLight.intensity
type: number
The intensity of the light.
- geometries.hyp.lights.sunLight.SunLight.SunLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- geometries.hyp.lights.sunLight.SunLight.SunLight.isLocal
type: boolean
Says whether the shape is local. True if local, false otherwise
- static geometries.hyp.lights.sunLight.SunLight.SunLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –
- class geometries.hyp.lights.truePointLight.TruePointLight.TruePointLight(position, color, intensity=1)
Point light
Constructor
- Arguments:
position (Point|Vector) – data for the position of the light - If the input in a Point, then the position is that point. - If the input is a Vector, then the position is the image of this vector by the exponential map at the origin.
color (Color) – the color of the light
intensity (number) – the intensity of the light
- geometries.hyp.lights.truePointLight.TruePointLight.TruePointLight.TruePointLight
Constructor
- geometries.hyp.lights.truePointLight.TruePointLight.TruePointLight.color
type: Color
The color of the light.
- geometries.hyp.lights.truePointLight.TruePointLight.TruePointLight.intensity
type: number
The intensity of the light.
- geometries.hyp.lights.truePointLight.TruePointLight.TruePointLight.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- geometries.hyp.lights.truePointLight.TruePointLight.TruePointLight.isLocal
type: boolean
Says whether the shape is local. True if local, false otherwise
- geometries.hyp.lights.truePointLight.TruePointLight.TruePointLight.position
type: Point
The position of the light.
- static geometries.hyp.lights.truePointLight.TruePointLight.TruePointLight.glslClass()
Return the chunk of GLSL code defining the corresponding structure.
- Returns:
string –