Encapsulation of a texture which combines two materials. More...
#include <texture.h>
Inherits rtl_solidtexture.
Inherited by rtl_checkers, rtl_tiles and rtl_turbulence.
A binary texture uses some sort of heuristic to do a weighted combination of two child materials.
Sub-classes must override the weight function.
[protected]Creates a Binary texture from two given materials. The boolean indicates that the children materials should be deleted.
[protected]
Combines the two child materials into the given material by lerping
between the two children by the amount returned by weight.
Reimplemented from rtl_texture.
[protected, pure virtual]Returns the linear interpolation coefficient to weight the two child materials by.
Reimplemented in rtl_turbulence, rtl_tiles and rtl_checkers.
[protected]
[protected]