Skip to content

File Material.h

FileList > render > Material.h

Go to the source code of this file

Material system for PBR rendering with texture and parameter management.More...

  • #include "Parameters.h"
  • #include "Texture.h"
  • #include <array>

Classes

Type Name
class Material
Material descriptor for PBR rendering.

Detailed Description

Provides the Material class for representing physically-based rendering (PBR) materials with support for textures, constants, and procedural shading. Materials are used by Mesh objects to define surface appearance (albedo, metallic, roughness, etc.).

GPU Resource Ownership: * Material owns TextureRes shared pointers (reference-counted textures) * Does not own GPU texture objects directly (managed by TextureLib) * Materials can be shared across multiple meshes

Architecture: * Each parameter can be a float, color (vec3), or texture * Texture binding happens in BindMatTexture() * Change tracking via is_mat_changed flags for efficient updates


The documentation for this class was generated from the following file src/render/Material.h