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

A unlit (or fully lit) material, not affected by light. More...

Inheritance diagram for eu::render::UnlitMaterial:
eu::render::Material

Public Member Functions

 UnlitMaterial (const ShaderResource &resource)
 
void use_shader (const RenderContext &) override
 
void set_uniforms (const RenderContext &, const CompiledCamera &, const std::optional< m4 > &) override
 
void bind_textures (const RenderContext &, State *states, Assets *assets) override
 
void apply_lights (const RenderContext &, const Lights &lights, const RenderSettings &settings, State *states, Assets *assets) override
 
bool is_transparent () const override
 
- Public Member Functions inherited from eu::render::Material
 Material ()=default
 
virtual ~Material ()=default
 
 Material (const Material &)=delete
 
 Material (Material &&)=delete
 
void operator= (const Material &)=delete
 
void operator= (Material &&)=delete
 

Public Attributes

const LoadedShader_Unlit_Containershader_container
 
Rgb color = colors::white
 
float alpha = 1.0f
 
std::shared_ptr< Texture2dtexture
 

Detailed Description

A unlit (or fully lit) material, not affected by light.

Definition at line 49 of file material.h.

Constructor & Destructor Documentation

◆ UnlitMaterial()

eu::render::UnlitMaterial::UnlitMaterial ( const ShaderResource resource)
explicit

Member Function Documentation

◆ apply_lights()

void eu::render::UnlitMaterial::apply_lights ( const RenderContext ,
const Lights lights,
const RenderSettings settings,
State states,
Assets assets 
)
overridevirtual

Implements eu::render::Material.

◆ bind_textures()

void eu::render::UnlitMaterial::bind_textures ( const RenderContext ,
State states,
Assets assets 
)
overridevirtual

Implements eu::render::Material.

◆ is_transparent()

bool eu::render::UnlitMaterial::is_transparent ( ) const
overridevirtual

Implements eu::render::Material.

◆ set_uniforms()

void eu::render::UnlitMaterial::set_uniforms ( const RenderContext ,
const CompiledCamera ,
const std::optional< m4 > &   
)
overridevirtual

Implements eu::render::Material.

◆ use_shader()

void eu::render::UnlitMaterial::use_shader ( const RenderContext )
overridevirtual

Implements eu::render::Material.

Member Data Documentation

◆ alpha

float eu::render::UnlitMaterial::alpha = 1.0f

Definition at line 53 of file material.h.

◆ color

Rgb eu::render::UnlitMaterial::color = colors::white

Definition at line 52 of file material.h.

◆ shader_container

const LoadedShader_Unlit_Container* eu::render::UnlitMaterial::shader_container

Definition at line 51 of file material.h.

◆ texture

std::shared_ptr<Texture2d> eu::render::UnlitMaterial::texture

Definition at line 54 of file material.h.


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