Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
water [2020/01/14 08:02] – [Example] admin | water [2020/01/24 09:36] – admin | ||
---|---|---|---|
Line 96: | Line 96: | ||
| WaveSize | Defines the amplitude of waves, which means how high or low waves are simulated. This value do not manipulate mesh vertices (only by displacement mapping). | | | WaveSize | Defines the amplitude of waves, which means how high or low waves are simulated. This value do not manipulate mesh vertices (only by displacement mapping). | | ||
| Displacement | Defines the factor of vertex displacement based on the displacement map or normal map. | | | Displacement | Defines the factor of vertex displacement based on the displacement map or normal map. | | ||
+ | | ReflCorrection | By this value you can modify the color of reflection, default value: Vector3D(1.0, | ||
+ | | RefrCorrection | By this value you can modify the color of refraction on water surface, default value: Vector3D(1.1, | ||
===== Example ===== | ===== Example ===== | ||
Line 146: | Line 148: | ||
FWaterMaterial := TGorillaWaterMaterialSource.Create(FWaterPlane); | FWaterMaterial := TGorillaWaterMaterialSource.Create(FWaterPlane); | ||
FWaterMaterial.Parent := FWaterPlane; | FWaterMaterial.Parent := FWaterPlane; | ||
- | FWaterMaterial.NormalTexture.LoadFromFile(LTexPath + ' | + | FWaterMaterial.NormalMap.LoadFromFile(LTexPath + ' |
FWaterMaterial.DUDVTexture.LoadFromFile(LTexPath + ' | FWaterMaterial.DUDVTexture.LoadFromFile(LTexPath + ' | ||
FWaterMaterial.DisplacementMap.LoadFromFile(LTexPath + ' | FWaterMaterial.DisplacementMap.LoadFromFile(LTexPath + ' |