|
@@ -149,7 +149,7 @@ var
|
|
Vec: TVector;
|
|
Vec: TVector;
|
|
begin
|
|
begin
|
|
heightData.MaterialName := normalMapMaterial.Name;
|
|
heightData.MaterialName := normalMapMaterial.Name;
|
|
- normalMapMaterial.Texture2Name := 'details';//'texture'; not 'ground' or 'contrast';
|
|
|
|
|
|
+ normalMapMaterial.Texture2Name := 'contrast';//'details', 'texture' or 'contrast';
|
|
normalMapMaterial.Shader := GLTexCombineShader1;
|
|
normalMapMaterial.Shader := GLTexCombineShader1;
|
|
normalMapMaterial.Material.MaterialOptions := [moNoLighting];
|
|
normalMapMaterial.Material.MaterialOptions := [moNoLighting];
|
|
Vec := VectorNormalize(SPSun.AbsolutePosition);
|
|
Vec := VectorNormalize(SPSun.AbsolutePosition);
|
|
@@ -308,7 +308,7 @@ var
|
|
i: Integer;
|
|
i: Integer;
|
|
bmp: TBitmap;
|
|
bmp: TBitmap;
|
|
begin
|
|
begin
|
|
- with GLMaterialLibrary1.LibMaterialByName('ground').Material do
|
|
|
|
|
|
+ with GLMaterialLibrary1.LibMaterialByName('contrast').Material do
|
|
begin
|
|
begin
|
|
bmp := TBitmap.Create;
|
|
bmp := TBitmap.Create;
|
|
try
|
|
try
|