Skip to content

Commit

Permalink
Update material_import.py, Texture Alpha node to Principled BSDF Alpha
Browse files Browse the repository at this point in the history
added change to create_vertex_material so that we can connect the Texture Alpha node to Principled BSDF Alpha node
  • Loading branch information
rizzntine authored Nov 23, 2023
1 parent 194e444 commit a550417
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions io_mesh_w3d/common/utils/material_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def create_vertex_material(context, principleds, structure, mesh, b_mesh, name,
tex = find_texture(context, texture.file, texture.id)
principleds[mat_id].base_color_texture.image = tex
principleds[mat_id].base_color_texture.image.name = texture.file
principleds[mat_id].alpha_texture.image = tex
principleds[mat_id].alpha_texture.image.name = texture.file


def create_material_from_vertex_material(name, vert_mat):
Expand Down

0 comments on commit a550417

Please sign in to comment.