17 #ifndef __H__OBJ_PARSER_TEXTURE_DESCRIPTOR__H__
18 #define __H__OBJ_PARSER_TEXTURE_DESCRIPTOR__H__
20 #include "OBJStructs.hpp"
27 enum class OBJTextureChannel
55 void setBlendU(
bool on);
56 bool getBlendU()
const;
58 void setBlendV(
bool on);
59 bool getBlendV()
const;
61 void setClamp(
bool on);
62 bool getClamp()
const;
64 void setColorCorrection(
bool on);
65 bool getColorCorrection()
const;
67 void setResolution(uint32_t resolution);
68 uint32_t getResolution()
const;
70 void setBumpMultiplier(
float multiplier);
71 float getBumpMultiplier()
const;
73 void setBoost(
float boost);
74 float getBoost()
const;
78 float getRangeModBase()
const;
79 float getRangeModGain()
const;
87 void setTurbulence(
OBJVector3 const& turbulence);
90 void setimfchan(
char channel);
91 OBJTextureChannel getimfchan()
const;
93 void setPath(std::string
const& path);
94 std::string
const& getPath()
const;
OBJVector3 m_Scale
Scales the values of the texture. Default (1.0, 1.0, 1.0). (horiz, vert, depth).
Definition: OBJTextureDescriptor.hpp:112
float m_Boost
Increases sharpness of mip-mapped textures. Positive only. Typical range (1.0 - 5.0)
Definition: OBJTextureDescriptor.hpp:106
bool m_ColorCorrection
If true, enable color correction. Only used on ambient, diffuse, and specular textures.
Definition: OBJTextureDescriptor.hpp:101
Simple two-component vector struct.
Definition: OBJStructs.hpp:32
Definition: OBJTextureDescriptor.hpp:46
float m_BumpMultiplier
Multiplier of values in bump textures only. Positive or negative. Typical range (0.0 - 1.0)
Definition: OBJTextureDescriptor.hpp:105
OBJVector3 m_Offset
Offsets the position of the texture on the surface via shifting. Default (0.0, 0.0, 0.0). (horiz, vert, depth).
Definition: OBJTextureDescriptor.hpp:111
bool m_BlendV
If true, enable texture blending along the vertical axis. Default is true.
Definition: OBJTextureDescriptor.hpp:99
bool m_BlendU
If true, enable texture blending along the horizontal axis. Default is true.
Definition: OBJTextureDescriptor.hpp:98
uint32_t m_Resolution
Texture resolution. Default of 0 if no resolution specified.
Definition: OBJTextureDescriptor.hpp:103
OBJVector3 m_Turbulence
Applies turbulence to the texture. Default (0.0, 0.0, 0.0) for no turbulence. (horiz, vert, depth).
Definition: OBJTextureDescriptor.hpp:113
bool m_Clamp
If true, enable texture clamping. Default is false.
Definition: OBJTextureDescriptor.hpp:100
OBJTextureChannel m_imfchan
Specifies the channel used to create a scalar or bump texture.
Definition: OBJTextureDescriptor.hpp:115
std::string m_Path
Relative path (from material file) to texture source file. Includes file extension.
Definition: OBJTextureDescriptor.hpp:117
Simple three-component vector struct.
Definition: OBJStructs.hpp:41
float m_RangeModGain
Modifies texture values by increasing the contrast. Default is 1.0.
Definition: OBJTextureDescriptor.hpp:109
float m_RangeModBase
Modifies texture values by adding a base value. Default is 0.0.
Definition: OBJTextureDescriptor.hpp:108