mirror of
https://github.com/dpethes/rerogue.git
synced 2025-06-07 18:58:32 +02:00
terrain viewer: tile texture index remapping
This commit is contained in:
parent
89f88b0918
commit
8f9fb78d19
@ -228,9 +228,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TWorld.LoadFromFiles(const hmp, tex, texmap: string);
|
procedure TWorld.LoadFromFiles(const hmp, tex, texmap: string);
|
||||||
|
var
|
||||||
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
LoadHeightmap(hmp);
|
LoadHeightmap(hmp);
|
||||||
LoadTextures(tex, texmap);
|
LoadTextures(tex, texmap);
|
||||||
|
for i := 0 to heightmap.tile_count - 1 do begin
|
||||||
|
heightmap.tiles[i].texture_index := heightmap.texture_index_map[heightmap.tiles[i].texture_index];
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TWorld.Create;
|
constructor TWorld.Create;
|
||||||
|
@ -200,7 +200,7 @@ begin
|
|||||||
view.pitch := 0;
|
view.pitch := 0;
|
||||||
view.x := 0;
|
view.x := 0;
|
||||||
view.y := 0;
|
view.y := 0;
|
||||||
view.autorotate := true;
|
view.autorotate := false;
|
||||||
view.opts.wireframe := false;
|
view.opts.wireframe := false;
|
||||||
view.opts.points := false;
|
view.opts.points := false;
|
||||||
view.opts.vcolors := true;
|
view.opts.vcolors := true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user