Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast 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] – [Example] 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 : TGorillaBumpMapMaterialSource; | ||
+ | |||
+ | FBumpMapMaterial: | ||
+ | FBumpMapMaterial.Parent := GorillaViewport1; | ||
+ | FBumpMapMaterial.Texture.LoadFromFile(' | ||
+ | FBumpMapMaterial.NormalMap.LoadFromFile(' | ||
+ | FBumpMapMaterial.SpecularMap.LoadFromFile(' | ||
+ | |||
+ | FBumpMapMaterial.NormalIntensity := 1.0; | ||
+ | </ |