cgv
Loading...
Searching...
No Matches
cgv::media::illum::phong_material Struct Reference

Stores properties of a phong brdf material. More...

#include <phong_material.h>

Inheritance diagram for cgv::media::illum::phong_material:
cgv::media::illum::obj_material

Public Types

using color_type = cgv::rgba
 

Static Public Member Functions

static const phong_materialget_default ()
 provide a const reference to a standard phong material
 

Public Attributes

color_type ambient = { 0.1f, 0.1f, 0.1f, 1.0f }
 ambient color component
 
color_type diffuse = { 0.5f, 0.5f, 0.5f, 1.0f }
 diffuse color component
 
color_type specular = { 0.5f, 0.5f, 0.5f, 1.0f }
 specular color component
 
color_type emission = { 0.0f, 0.0f, 0.0f, 1.0f }
 emissive color component
 
float shininess = 50.0f
 exponent of the specular cosine term
 

Detailed Description

Stores properties of a phong brdf material.

Definition at line 11 of file phong_material.h.

Member Typedef Documentation

◆ color_type

Member Function Documentation

◆ get_default()

const phong_material & cgv::media::illum::phong_material::get_default ( )
static

provide a const reference to a standard phong material

Definition at line 7 of file phong_material.cxx.

Member Data Documentation

◆ ambient

color_type cgv::media::illum::phong_material::ambient = { 0.1f, 0.1f, 0.1f, 1.0f }

◆ diffuse

color_type cgv::media::illum::phong_material::diffuse = { 0.5f, 0.5f, 0.5f, 1.0f }

◆ emission

color_type cgv::media::illum::phong_material::emission = { 0.0f, 0.0f, 0.0f, 1.0f }

◆ shininess

float cgv::media::illum::phong_material::shininess = 50.0f

◆ specular

color_type cgv::media::illum::phong_material::specular = { 0.5f, 0.5f, 0.5f, 1.0f }

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