In file gfx/libpaper/Paper.hxx:

class Paper::TexGenEmboss

TexGen for embossing.

Documentation

TexGen for embossing. Shifts the texture towards the light by an amount proportional to eps. Take the difference of the filtered values generated by two emboss texgens using the same texture with +eps and -eps parameters to obtain an approximation of the diffuse dot product.

Inheritance:

TexGenEmboss - TexGen


Public Methods

[more] TexGenEmboss (const float* tex_mat, float eps)
Creates a new TexGen for embossing.

Protected Fields

[more]float eps
Amount to shift the texture towards the light.
[more]float explicit_tmp_mat [16]
When embossing (depends of LightParam), texcoords_explicit() needs a different matrix to transform paper position into embossed texture coordinates


Inherited from TexGen:

Public Fields

oconst float* explicit_mat

Protected Fields

ofloat tex_mat[16]

ofloat eps
Amount to shift the texture towards the light.

ofloat explicit_tmp_mat[16]
When embossing (depends of LightParam), texcoords_explicit() needs a different matrix to transform paper position into embossed texture coordinates

o TexGenEmboss(const float* tex_mat, float eps)
Creates a new TexGen for embossing.
Parameters:
- tex_mat A float vector of 12 elements, components of s, t and r vectors, respectively.
- eps mount to shift the texture towrds the light


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.