Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::BumpMap::Settings Class Reference

Public Member Functions

 Settings ()
 
 Settings (const Any &any)
 
void deserialize (BinaryInput &b)
 
bool operator!= (const Settings &other) const
 
bool operator== (const Settings &s) const
 
void serialize (BinaryOutput &b) const
 
Any toAny () const
 

Public Attributes

float bias
 World-space offset from polygon surface to apply for parallax/displacement mapping. More...
 
int iterations
 
float scale
 World-space scale to apply to bump height for parallax/displacement mapping. More...
 

Constructor & Destructor Documentation

◆ Settings() [1/2]

G3D::BumpMap::Settings::Settings ( )
inline

◆ Settings() [2/2]

G3D::BumpMap::Settings::Settings ( const Any any)

Member Function Documentation

◆ deserialize()

void G3D::BumpMap::Settings::deserialize ( BinaryInput b)
inline

◆ operator!=()

bool G3D::BumpMap::Settings::operator!= ( const Settings other) const
inline

◆ operator==()

bool G3D::BumpMap::Settings::operator== ( const Settings s) const

◆ serialize()

void G3D::BumpMap::Settings::serialize ( BinaryOutput b) const
inline

◆ toAny()

Any G3D::BumpMap::Settings::toAny ( ) const

Member Data Documentation

◆ bias

float G3D::BumpMap::Settings::bias

World-space offset from polygon surface to apply for parallax/displacement mapping.

Default is 0.

Called "bias" instead of "offset" to avoid confusion with the computed parallax offset.

Referenced by deserialize(), and serialize().

◆ iterations

int G3D::BumpMap::Settings::iterations
  • 0 = Blinn normal map (default)
  • 1 = Kaneko-Welsh parallax map (default)
  • >1 = Tatarchuk parallax occlusion map ("steep parallax map")

Referenced by deserialize(), and serialize().

◆ scale

float G3D::BumpMap::Settings::scale

World-space scale to apply to bump height for parallax/displacement mapping.

Default is 0.001f.

Referenced by deserialize(), and serialize().


documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15