Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
0.8.4:bumpmap-material [2022/06/17 10:32] admin0.8.4:bumpmap-material [2022/06/17 10:36] admin
Line 9: Line 9:
  
 By this material a new **SpecularMap** texture property is provided. By this material a new **SpecularMap** texture property is provided.
 +
 +===== Example =====
 +
 +<file pascal>
 +uses
 +  Gorilla.Material.BumpMap;
 +  
 +var FBumpMapMaterial : TGorillaNormalMapMaterialSource;
 +
 +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;
 +</file>