Engine » Render » Lights module

Common interface for the lighting part of rendering plugins.

Files

file directional.hpp
Component cubos::engine::DirectionalLight.
file environment.hpp
Resource cubos::engine::RenderEnvironment.
file plugin.hpp
Plugin entry point.
file point.hpp
Component cubos::engine::PointLight.
file spot.hpp
Component cubos::engine::SpotLight.

Classes

struct cubos::engine::DirectionalLight
Component which makes an entity behave like a directional light.
struct cubos::engine::RenderEnvironment
Resource which stores the scene's ambient light and sky colors.
struct cubos::engine::PointLight
Component which makes an entity behave like a point light.
struct cubos::engine::SpotLight
Component which makes an entity emit a spot light in the direction of its local forward vector.

Functions

auto lightsPlugin(Cubos& cubos) -> CUBOS_ENGINE_API void
Plugin entry function.

Function documentation

CUBOS_ENGINE_API void lightsPlugin(Cubos& cubos)

Plugin entry function.

Parameters
cubos Cubos main class.