MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk::OBJMaterial Struct Reference

Wavefront material data used by the software rasterizer. More...

#include <mxvk/include/mxvk/mxvk_math_obj.hpp>

Public Attributes

std::array< float, 3 > ambient {0.2f, 0.2f, 0.2f}
std::array< float, 3 > diffuse {0.8f, 0.8f, 0.8f}
std::string diffuse_map
float dissolve = 1.0f
int illumination_model = 0
std::string name
float shininess = 0.0f
std::array< float, 3 > specular {}

Detailed Description

Wavefront material data used by the software rasterizer.

The diffuse color is used for solid triangle rendering. The remaining fields and resolved diffuse texture path are retained for applications that provide their own lit or textured pixel shader.

Definition at line 24 of file mxvk_math_obj.hpp.

Member Data Documentation

◆ ambient

std::array<float, 3> mxvk::OBJMaterial::ambient {0.2f, 0.2f, 0.2f}

Definition at line 26 of file mxvk_math_obj.hpp.

26{0.2f, 0.2f, 0.2f};

◆ diffuse

std::array<float, 3> mxvk::OBJMaterial::diffuse {0.8f, 0.8f, 0.8f}

Definition at line 27 of file mxvk_math_obj.hpp.

27{0.8f, 0.8f, 0.8f};

◆ diffuse_map

std::string mxvk::OBJMaterial::diffuse_map

Definition at line 32 of file mxvk_math_obj.hpp.

◆ dissolve

float mxvk::OBJMaterial::dissolve = 1.0f

Definition at line 30 of file mxvk_math_obj.hpp.

◆ illumination_model

int mxvk::OBJMaterial::illumination_model = 0

Definition at line 31 of file mxvk_math_obj.hpp.

◆ name

std::string mxvk::OBJMaterial::name

Definition at line 25 of file mxvk_math_obj.hpp.

◆ shininess

float mxvk::OBJMaterial::shininess = 0.0f

Definition at line 29 of file mxvk_math_obj.hpp.

◆ specular

std::array<float, 3> mxvk::OBJMaterial::specular {}

Definition at line 28 of file mxvk_math_obj.hpp.

28{};

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