4#include "surface_material.h"
5#include "obj_material.h"
18 std::string name =
"default";
20 bool sRGBA_textures =
false;
22 int diffuse_index = -1;
26 int roughness_index = -1;
30 int metalness_index = -1;
33 int ambient_index = -1;
35 int emission_index = -1;
38 int transparency_index = -1;
40 int propagation_slow_down_index = -1;
42 int specular_index = -1;
44 int normal_index = -1;
49 float bump_scale = 0.1f;
59 int add_image_file(
const std::string& file_name);
63 void set_image_file_name(
int i, std::string image_file_name) { image_file_names[i] = image_file_name; }
77#include <cgv/config/lib_end.h>
Stores properties of a surface material with support for texturing.
void set_image_file_name(int i, std::string image_file_name)
set the image file name of i-th image file
std::vector< std::string > image_file_names
vector of image file names
virtual size_t get_nr_textures() const
virtual method to query number of textures
unsigned get_nr_image_files() const
return number of image files
std::string & ref_image_file_name(int i)
return reference to image file name of i-th image file
textured_surface_material()
construct using default values
std::string get_image_file_name(int i) const
return the name of the i-th image file