SolarSim
Loading...
Searching...
No Matches
solarsim::Material Struct Reference

Defines surface appearance properties for rendering. More...

#include <material.hpp>

Data Fields

std::string shaderID
glm::vec3 albedo = glm::vec3(1.0f, 1.0f, 1.0f)
float metallic = 0.0f
float roughness = 1.0f

Detailed Description

Defines surface appearance properties for rendering.

Warning
Ensure shaderID references a valid compiled shader

Field Documentation

◆ albedo

glm::vec3 solarsim::Material::albedo = glm::vec3(1.0f, 1.0f, 1.0f)

Base color (RGB)

◆ metallic

float solarsim::Material::metallic = 0.0f

Metallic factor (0 = dielectric, 1 = metal)

◆ roughness

float solarsim::Material::roughness = 1.0f

Surface roughness (0 = smooth, 1 = rought)

◆ shaderID

std::string solarsim::Material::shaderID

Identifier for the shader program to use


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