Warning: Undefined array key "translationlc" in /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/Action/Export.php on line 104
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/Action/Export.php on line 104
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/Action/Export.php on line 104
====== BumpMap Material (TGorillaBumpMapMaterialSource) ======
The **TGorillaBumpMapMaterialSource** (TGorillaBumpMapMaterial) is inherited from the [[normalmap-material|TGorillaNormalMapMaterialSource]], supports multiple light sources and extends normal-mapping functionality by a specular texture map for better specular color results by: **GORILLA_GLSL_DEFINE_BUMP**
{{:0.8.4:normalmapping.jpg?nolink|}}
//__Hint:__ Due to historical development of Gorilla3D this is called BumpMap-Material, even if this terminologically not fully correct.//
By this material a new **SpecularMap** texture property is provided.
===== Example =====
uses
Gorilla.Material.BumpMap;
var FBumpMapMaterial : TGorillaBumpMapMaterialSource;
FBumpMapMaterial:= TGorillaBumpMapMaterialSource.Create(GorillaViewport1);
FBumpMapMaterial.Parent := GorillaViewport1;
FBumpMapMaterial.Texture.LoadFromFile('brick-c.jpg');
FBumpMapMaterial.NormalMap.LoadFromFile('brick-n.jpg');
FBumpMapMaterial.SpecularMap.LoadFromFile('brick-s.jpg');
FBumpMapMaterial.NormalIntensity := 1.0;