Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pypbr/materials/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def from_tensor(
index = 0
for map_name, num_channels in config:
map_split = tensor[index : index + num_channels].clone()
if is_normalized:
if is_normalized and map_name != "normal":
map_split = map_split * 0.5 + 0.5
if map_name == "normal" and num_channels == 2:
map_split = instance._compute_normal_map_z_component(map_split)
Expand Down