Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
0.8.4:bumpmap-material [2022/06/17 10:32] – admin | 0.8.4:bumpmap-material [2022/06/17 10:36] – admin | ||
---|---|---|---|
Line 3: | Line 3: | ||
The **TGorillaBumpMapMaterialSource** (TGorillaBumpMapMaterial) is inherited from the TGorillaNormalMapMaterialSource, | The **TGorillaBumpMapMaterialSource** (TGorillaBumpMapMaterial) is inherited from the TGorillaNormalMapMaterialSource, | ||
+ | |||
+ | {{: | ||
//__Hint:__ Due to historical development of Gorilla3D this is called BumpMap-Material, | //__Hint:__ Due to historical development of Gorilla3D this is called BumpMap-Material, | ||
Line 8: | Line 10: | ||
By this material a new **SpecularMap** texture property is provided. | By this material a new **SpecularMap** texture property is provided. | ||
- | {{:0.8.4:normalmapping.jpg?nolink|}} | + | ===== Example ===== |
+ | |||
+ | <file pascal> | ||
+ | uses | ||
+ | Gorilla.Material.BumpMap; | ||
+ | |||
+ | var FBumpMapMaterial | ||
+ | |||
+ | FBumpMapMaterial: | ||
+ | FBumpMapMaterial.Parent | ||
+ | FBumpMapMaterial.Texture.LoadFromFile(' | ||
+ | FBumpMapMaterial.NormalMap.LoadFromFile(' | ||
+ | FBumpMapMaterial.SpecularMap.LoadFromFile(' | ||
+ | |||
+ | FBumpMapMaterial.NormalIntensity := 1.0; | ||
+ | </ |