Path Tracing
Loading...
Searching...
No Matches
CPUTextureSlot Struct Reference

#include <mesh.hpp>

Public Attributes

int has_texture = 0
string tex_path = ""
std::vector< unsigned char > embedded_data
int embedded_width = 0
int embedded_height = 0

Detailed Description

Describes one texture slot (any albedo, normal, rough...) as loaded from source file. Can be either a path from disk to load, or already-decoded embedded data.

Note
Extended and generalized from the old single-tex CPUMaterial.

Member Data Documentation

◆ embedded_data

std::vector<unsigned char> CPUTextureSlot::embedded_data

◆ embedded_height

int CPUTextureSlot::embedded_height = 0

◆ embedded_width

int CPUTextureSlot::embedded_width = 0

◆ has_texture

int CPUTextureSlot::has_texture = 0

◆ tex_path

string CPUTextureSlot::tex_path = ""

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