Skip to content

Commit

Permalink
TokisanGames#233: Replaced PackedByteArray with PackedInt32Array
Browse files Browse the repository at this point in the history
  • Loading branch information
rds1983 committed Nov 18, 2023
1 parent fc2f60d commit d452c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/terrain_3d_material.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Terrain3DMaterial : public Resource {
int _texture_count = 0;
int _region_size = 1024;
Vector2i _region_sizev = Vector2i(_region_size, _region_size);
PackedByteArray _region_map;
PackedInt32Array _region_map;
GeneratedTex _generated_region_blend_map; // 512x512 blurred image of region_map

// Functions
Expand Down
2 changes: 1 addition & 1 deletion src/terrain_3d_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Terrain3DStorage : public Resource {
* texture in generated_*_maps.
*/
bool _region_map_dirty = true;
PackedByteArray _region_map; // 16x16 Region grid with index into region_offsets (1 based array)
PackedInt32Array _region_map; // 16x16 Region grid with index into region_offsets (1 based array)
TypedArray<Vector2i> _region_offsets; // Array of active region coordinates
TypedArray<Image> _height_maps;
TypedArray<Image> _control_maps;
Expand Down

0 comments on commit d452c68

Please sign in to comment.