Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
0.8.4:bumpmap-material [2022/06/15 19:34] – created admin | 0.8.4:bumpmap-material [2022/06/17 10:47] (current) – [BumpMap Material (TGorillaBumpMapMaterialSource)] admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | The **TGorillaBumpMapMaterialSource** (TGorillaBumpMapMaterial) is inherited from the TGorillaNormalMapMaterialSource, | + | 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** |
+ | |||
+ | {{: | ||
//__Hint:__ Due to historical development of Gorilla3D this is called BumpMap-Material, | //__Hint:__ Due to historical development of Gorilla3D this is called BumpMap-Material, | ||
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 : TGorillaBumpMapMaterialSource; | ||
+ | |||
+ | FBumpMapMaterial: | ||
+ | FBumpMapMaterial.Parent := GorillaViewport1; | ||
+ | FBumpMapMaterial.Texture.LoadFromFile(' | ||
+ | FBumpMapMaterial.NormalMap.LoadFromFile(' | ||
+ | FBumpMapMaterial.SpecularMap.LoadFromFile(' | ||
+ | |||
+ | FBumpMapMaterial.NormalIntensity := 1.0; | ||
+ | </ |