Programming API Reference: SharpGfx.Lighting

Class public abstract LightingBase

Abstract base class for lights and materials. The methods must only be used to describe light and material properties.
Property protected Point3 SurfacePosition { get }: the current point on the surface.
Property protected Vector3 SurfaceNormal { get }: the current surface normal.

Method protected T ValueOf()

refer to a calculated property.
  • Expression<Func<T>> expression

Method protected Vector2 VectorOf()

Create a 2d vector.
  • float x
  • float y

Method protected Vector3 VectorOf()

Create a 3d vector.
  • float x
  • float y
  • float z

Method protected Vector4 VectorOf()

Create a 4d vector.
  • float x
  • float y
  • float z
  • float w

Method protected Color3 ColorOf()

Create a color without transparency.
  • float r
  • float g
  • float b

Method protected Color4 ColorOf()

Create a color with transparency.
  • float r
  • float g
  • float b
  • float a

Method protected Color4 ColorOf()

Add transparency to a color.

Method public IEnumerable<PropertyInfo> GetProperties()

TODO