Struct GLPointLightStruct
- Namespace
- SearchAThing.OpenGL.Core
- Assembly
- netcore-opengl-core.dll
Structure that contains gl point light info.
It will be used by the RenderVertexManager(Func<GLFigureBase, bool>, GLPipeline, GLVertexManager, GLPointLightStruct[], GLMatrix4x4Struct[])
and loaded into the gpu pipeline through GLShaderStorageBlock<T>
public struct GLPointLightStruct
- Inherited Members
Fields
ambient
Ambient color.
DEFAULT_LIGHT_COLOR
public Vector3 ambient
Field Value
constant
Light constant attenuation (0..1). DEFAULT_LIGHT_CONSTANT
public float constant
Field Value
diffuse
Diffuse color.
DEFAULT_LIGHT_COLOR
public Vector3 diffuse
Field Value
linear
Light linear attenutation (0..1). DEFAULT_LIGHT_LINEAR
public float linear
Field Value
position
Light position [world].
public Vector3 position
Field Value
quadratic
Light quadratic attenuation (0..1). DEFAULT_LIGHT_QUADRATIC.
public float quadratic
Field Value
specular
Specular color.
DEFAULT_LIGHT_COLOR
public Vector3 specular
Field Value
Methods
ToString()
public override string ToString()