Skip to content

Commit

Permalink
Merge pull request #332 from Reonu/preview-packed-colors
Browse files Browse the repository at this point in the history
preview vertex colors on packed materials (temporary solution)
  • Loading branch information
sauraen authored Apr 20, 2024
2 parents 4efa45d + 62d85f7 commit 6ccca2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fast64_internal/f3d/f3d_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,10 @@ def update_node_values_of_material(material: Material, context):
else:
nodes["UV"].node_tree = bpy.data.node_groups["UV"]

if f3dMat.rdp_settings.g_lighting:
# This is a temporary measure to be able to see the vertex colors in packed materials.
if bpy.context.scene.f3d_type == "F3DEX3" and f3dMat.rdp_settings.g_packed_normals:
nodes["Shade Color"].node_tree = bpy.data.node_groups["ShdCol_V"]
elif f3dMat.rdp_settings.g_lighting:
nodes["Shade Color"].node_tree = bpy.data.node_groups["ShdCol_L"]
else:
nodes["Shade Color"].node_tree = bpy.data.node_groups["ShdCol_V"]
Expand Down

0 comments on commit 6ccca2b

Please sign in to comment.