tec::DirectionalLight

#include <lights.hpp>

Inherits from tec::BaseLight

Inherited by tec::SpotLight

Public Functions

Name
DirectionalLight() =default
void Out(proto::Component * target)
void In(const proto::Component & source)

Public Attributes

Name
glm::vec3 direction

Additional inherited members

Public Functions inherited from tec::BaseLight

Name
BaseLight() =default

Public Attributes inherited from tec::BaseLight

Name
glm::vec3 color
float ambient_intensity
float diffuse_intensity

Public Functions Documentation

function DirectionalLight

DirectionalLight() =default

function Out

inline void Out(
    proto::Component * target
)

function In

inline void In(
    const proto::Component & source
)

Public Attributes Documentation

variable direction

glm::vec3 direction {0.f, 0.f, -1.f};

Updated on 2022-07-24 at 19:27:35 +0000