Functions

sp::tool::ImageModifier Namespace Reference

Image modifier namespace to bake normal maps, blur images etc. More...

Functions

SP_EXPORT void drawMosaic (video::ImageBuffer *ImgBuffer, s32 PixelSize, dim::rect2di Rect=DEF_TEXMANIP_RECT)
SP_EXPORT void drawBlur (video::ImageBuffer *ImgBuffer, s32 PixelSize, dim::rect2di Rect=DEF_TEXMANIP_RECT)
SP_EXPORT void bakeNormalMap (video::ImageBuffer *ImgBuffer, f32 Amplitude=DEF_NORMALMAP_AMPLITUDE)

Detailed Description

Image modifier namespace to bake normal maps, blur images etc.


Function Documentation

SP_EXPORT void sp::tool::ImageModifier::bakeNormalMap ( video::ImageBuffer *  ImgBuffer,
f32  Amplitude = DEF_NORMALMAP_AMPLITUDE 
)

Generates a normal map out of the given height map.

Parameters:
HeightMap,: Specifies the height map from which the normal map is to be generated.
Amplitude,: Specifies the factor (or rather amplitude) for the normal map generation.
SP_EXPORT void sp::tool::ImageModifier::drawBlur ( video::ImageBuffer *  ImgBuffer,
s32  PixelSize,
dim::rect2di  Rect = DEF_TEXMANIP_RECT 
)
SP_EXPORT void sp::tool::ImageModifier::drawMosaic ( video::ImageBuffer *  ImgBuffer,
s32  PixelSize,
dim::rect2di  Rect = DEF_TEXMANIP_RECT 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines