Skip to content

Commit

Permalink
only offset the zero values of normalized data
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Feb 14, 2025
1 parent 2abe0b8 commit 4f4e894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_idv/scene_data/block_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _load_textures(self):
# blocks filled with identically 0 values will be
# skipped by the shader, so offset by a tiny value.
# see https://github.com/yt-project/yt_idv/issues/171
n_data += np.finfo(np.float32).eps
n_data[n_data == 0.0] += np.finfo(np.float32).eps

data_tex = Texture3D(data=n_data)
bitmap_tex = Texture3D(
Expand Down

0 comments on commit 4f4e894

Please sign in to comment.