Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
Material Struct Reference

Structure representing a material with various properties. More...

#include <model.h>

Public Attributes

char name [128]
 
vec3 flatColors [MATERIAL_PROPERTY_COUNT]
 
TextureMap textureMaps [MATERIAL_PROPERTY_COUNT]
 
f32 specularExp
 
f32 opacity
 
f32 opticalDensity
 
u8 illumFlag
 

Detailed Description

Structure representing a material with various properties.

This structure holds the name, flat colors, texture maps, and other properties of a material.

Member Data Documentation

◆ name

char Material::name[128]

Name of the material

◆ flatColors

vec3 Material::flatColors[MATERIAL_PROPERTY_COUNT]

Array of flat colors for each material property

◆ textureMaps

TextureMap Material::textureMaps[MATERIAL_PROPERTY_COUNT]

Array of texture maps for each material property

◆ specularExp

f32 Material::specularExp

Specular exponent (Ns)

◆ opacity

f32 Material::opacity

Opacity (d)

◆ opticalDensity

f32 Material::opticalDensity

Optical density (Ni)

◆ illumFlag

u8 Material::illumFlag

Illumination flag (illum)


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