Light sources
Lightning Types
ApertusVR provides three types of lighting:
Spot
This Light works like a flashlight. It produces a solid cylinder of light that is brighter at the center and fades off.
Directional
This Light simulates a huge source that is very far away - like daylight. Light hits the entire scene at the same angle everywhere.
Point
This Light spreads out equally in all directions from a point.
Reflection types
The Ape::ILight
class has a wide range of properties. Two of the most important are the diffuse and specular color. Each defines how much specular and diffuse lighting a material reflects.
Diffuse
Diffuse light is reflected equally in all directions. This is one component of dynamic lighting. It is affected by the distance and angle between the surface and the light, but is unaffected by the viewer's position or viewing angle.
Specular
This is light that reflects more intensely along and around the reflection vector from a surface. It is used to add highlights to a surface that make it look shiny. Specular reflection is not only affected by the relationship between the surface and the light, but also the viewer - since when the viewer is closer, they will see a brighter spot at the point of reflection.
Eamples
Create a directional light:
Last updated