3D City v-1.0
Computer Graphics Project
dirLight Struct Reference

#include <core.h>

Public Member Functions

 dirLight (const vec3 &dir=vec3::normalize(vec3(1)), const float &intensity=1, const color &diffcol=color(255))
 

Public Attributes

vec3 direction
 
float intensity
 
color col
 

Detailed Description

Definition at line 341 of file core.h.

Constructor & Destructor Documentation

◆ dirLight()

dirLight::dirLight ( const vec3 &  dir = vec3::normalize(vec3(1)),
const float &  intensity = 1,
const color &  diffcol = color(255) 
)
inline

Definition at line 346 of file core.h.

Member Data Documentation

◆ col

color dirLight::col

Definition at line 344 of file core.h.

◆ direction

vec3 dirLight::direction

Definition at line 342 of file core.h.

◆ intensity

float dirLight::intensity

Definition at line 343 of file core.h.