naev 0.12.5
Material Struct Reference

PBR Material of an object. More...

#include <gltf.h>

Collaboration diagram for Material:

Data Fields

char * name
int blend
int noshadows
int double_sided
int unlit
Texture baseColour_tex
Texture metallic_tex
GLfloat metallicFactor
GLfloat roughnessFactor
GLfloat baseColour [4]
GLfloat sheen [3]
GLfloat sheen_roughness
GLfloat clearcoat
GLfloat clearcoat_roughness
Texture normal_tex
Texture occlusion_tex
Texture emissive_tex
GLfloat emissiveFactor [3]

Detailed Description

PBR Material of an object.

Definition at line 38 of file gltf.h.

Field Documentation

◆ baseColour

GLfloat Material::baseColour[4]

Base colour of the material. Multiplies the texture if available.

Definition at line 53 of file gltf.h.

◆ baseColour_tex

Texture Material::baseColour_tex

Base colour of the material.

Definition at line 45 of file gltf.h.

◆ blend

int Material::blend

Whether or not to blend it.

Definition at line 40 of file gltf.h.

◆ clearcoat

GLfloat Material::clearcoat

Definition at line 63 of file gltf.h.

◆ clearcoat_roughness

GLfloat Material::clearcoat_roughness

Definition at line 64 of file gltf.h.

◆ double_sided

int Material::double_sided

Whether or not it's double sided.

Definition at line 42 of file gltf.h.

◆ emissive_tex

Texture Material::emissive_tex

Definition at line 68 of file gltf.h.

◆ emissiveFactor

GLfloat Material::emissiveFactor[3]

Definition at line 69 of file gltf.h.

◆ metallic_tex

Texture Material::metallic_tex

Metallic/roughness map of the material. Metallic is stored in G channel, hile roughness is in the B channel.

Definition at line 46 of file gltf.h.

◆ metallicFactor

GLfloat Material::metallicFactor

Metallic factor (single value). Multplies the map if available.

Definition at line 49 of file gltf.h.

◆ name

char* Material::name

Name of the material if applicable.

Definition at line 39 of file gltf.h.

◆ normal_tex

Texture Material::normal_tex

Definition at line 66 of file gltf.h.

◆ noshadows

int Material::noshadows

Whether or not it ignores shadows.

Definition at line 41 of file gltf.h.

◆ occlusion_tex

Texture Material::occlusion_tex

Definition at line 67 of file gltf.h.

◆ roughnessFactor

GLfloat Material::roughnessFactor

Roughness factor (single value). Multiplies the map if available.

Definition at line 51 of file gltf.h.

◆ sheen

GLfloat Material::sheen[3]

Definition at line 57 of file gltf.h.

◆ sheen_roughness

GLfloat Material::sheen_roughness

Definition at line 58 of file gltf.h.

◆ unlit

int Material::unlit

Whether or not the texture is unlit.

Definition at line 43 of file gltf.h.


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