Skip to content

Commit

Permalink
Fix pixel->texel typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Aug 1, 2024
1 parent ce9b375 commit 8861cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terrain_3d_material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void Terrain3DMaterial::_update_regions() {
real_t region_size = real_t(storage->get_region_size());
LOG(DEBUG_CONT, "Setting region size in material: ", region_size);
RS->material_set_param(_material, "_region_size", region_size);
RS->material_set_param(_material, "_region_pixel_size", 1.0f / region_size);
RS->material_set_param(_material, "_region_texel_size", 1.0f / region_size);

real_t spacing = _terrain->get_mesh_vertex_spacing();
LOG(DEBUG_CONT, "Setting mesh vertex spacing in material: ", spacing);
Expand Down

0 comments on commit 8861cc2

Please sign in to comment.