Euphoria
Public Member Functions | Public Attributes | List of all members
eu::render::ShaderOptions Struct Reference

Shader compilation options. More...

Public Member Functions

ShaderOptions with_transparent_cutoff () const
 
ShaderOptions with_instanced_mat4 () const
 

Public Attributes

bool only_depth = false
 
bool use_blinn_phong = true
 
bool use_texture = false
 
bool use_lights = false
 
int number_of_point_lights = 0
 
int number_of_frustum_lights = 0
 
int number_of_directional_lights = 0
 
bool transparent_cutoff = false
 
bool use_instancing = false
 

Detailed Description

Shader compilation options.

See also
RenderSettings

Definition at line 11 of file shader.source.h.

Member Function Documentation

◆ with_instanced_mat4()

ShaderOptions eu::render::ShaderOptions::with_instanced_mat4 ( ) const

◆ with_transparent_cutoff()

ShaderOptions eu::render::ShaderOptions::with_transparent_cutoff ( ) const

Member Data Documentation

◆ number_of_directional_lights

int eu::render::ShaderOptions::number_of_directional_lights = 0

Definition at line 20 of file shader.source.h.

◆ number_of_frustum_lights

int eu::render::ShaderOptions::number_of_frustum_lights = 0

Definition at line 19 of file shader.source.h.

◆ number_of_point_lights

int eu::render::ShaderOptions::number_of_point_lights = 0

Definition at line 18 of file shader.source.h.

◆ only_depth

bool eu::render::ShaderOptions::only_depth = false

Definition at line 13 of file shader.source.h.

◆ transparent_cutoff

bool eu::render::ShaderOptions::transparent_cutoff = false

Definition at line 22 of file shader.source.h.

◆ use_blinn_phong

bool eu::render::ShaderOptions::use_blinn_phong = true

Definition at line 14 of file shader.source.h.

◆ use_instancing

bool eu::render::ShaderOptions::use_instancing = false

Definition at line 25 of file shader.source.h.

◆ use_lights

bool eu::render::ShaderOptions::use_lights = false

Definition at line 16 of file shader.source.h.

◆ use_texture

bool eu::render::ShaderOptions::use_texture = false

Definition at line 15 of file shader.source.h.


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