nngn
Loading...
Searching...
No Matches
nngn::LightsUBO Struct Reference

#include <graphics.h>

Collaboration diagram for nngn::LightsUBO:

Public Types

enum  Flag : u32 { SHADOWS_ENABLED = NNGN_SHADOWS_ENABLED_BIT }
 

Public Attributes

u32 flags = 0
 
float depth_transform0 = {}
 
float depth_transform1 = {}
 
vec3 view_pos = {}
 
u32 n_dir = 0
 
vec3 ambient = {1, 1, 1}
 
u32 n_point = 0
 
struct { 
 
   std::array< vec4, NNGN_MAX_LIGHTS >   dir = {} 
 
   std::array< vec4, NNGN_MAX_LIGHTS >   color_spec = {} 
 
   std::array< mat4, NNGN_MAX_LIGHTS >   mat = {} 
 
dir 
 
struct { 
 
   std::array< vec4, NNGN_MAX_LIGHTS >   dir = {} 
 
   std::array< vec4, NNGN_MAX_LIGHTS >   color_spec = {} 
 
   std::array< vec4, NNGN_MAX_LIGHTS >   pos = {} 
 
   std::array< vec4, NNGN_MAX_LIGHTS >   att_cutoff = {} 
 
point 
 

Member Enumeration Documentation

◆ Flag

Enumerator
SHADOWS_ENABLED 

Member Data Documentation

◆ ambient

vec3 nngn::LightsUBO::ambient = {1, 1, 1}

◆ att_cutoff

std::array<vec4, NNGN_MAX_LIGHTS> nngn::LightsUBO::att_cutoff = {}

◆ color_spec

std::array<vec4, NNGN_MAX_LIGHTS> nngn::LightsUBO::color_spec = {}

◆ depth_transform0

float nngn::LightsUBO::depth_transform0 = {}

◆ depth_transform1

float nngn::LightsUBO::depth_transform1 = {}

◆ dir [1/2]

std::array<vec4, NNGN_MAX_LIGHTS> nngn::LightsUBO::dir = {}

◆ [struct] [2/2]

struct { ... } nngn::LightsUBO::dir

◆ flags

u32 nngn::LightsUBO::flags = 0

◆ mat

std::array<mat4, NNGN_MAX_LIGHTS> nngn::LightsUBO::mat = {}

◆ n_dir

u32 nngn::LightsUBO::n_dir = 0

◆ n_point

u32 nngn::LightsUBO::n_point = 0

◆ [struct]

struct { ... } nngn::LightsUBO::point

◆ pos

std::array<vec4, NNGN_MAX_LIGHTS> nngn::LightsUBO::pos = {}

◆ view_pos

vec3 nngn::LightsUBO::view_pos = {}

The documentation for this struct was generated from the following file: