Skip to content

Commit

Permalink
Update charactertattoo and characterocclusion shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
PassiveModding committed Jan 13, 2025
1 parent eb73227 commit 724b1d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MeddleTools/node_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ def apply(self, groupNode, properties):
'meddle charactertattoo.shpk',
[
PngMapping('g_SamplerNormal_PngCachePath', 'g_SamplerNormal', 'g_SamplerNormal_alpha', 'Non-Color'),
FloatRgbMapping('OptionColor', 'OptionColor'),
# DecalColor mapping to g_DecalColor <- not implemented
]
)

Expand Down
6 changes: 3 additions & 3 deletions MeddleTools/shader_fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ def shpkMtrlFixer(object: bpy.types.Object, mat: bpy.types.Material, directory:
return {'CANCELLED'}

groupNode.node_tree = nodeGroupData
groupNode.location = (10, 300)
groupNode.location = (200, 300)
groupNode.width = 300

# create principal bsdf node
bsdfNode = material.nodes.new('ShaderNodeBsdfPrincipled')
bsdfNode.location = (-300, 300)
bsdfNode.location = (600, 300)
bsdfNode.width = 300

# connect groupNode outputs to bsdf inputs
Expand All @@ -138,7 +138,7 @@ def shpkMtrlFixer(object: bpy.types.Object, mat: bpy.types.Material, directory:
materialOutput = material.nodes['Material Output']
surfaceInput = materialOutput.inputs['Surface']
bsdfOutput = bsdfNode.outputs['BSDF']
materialOutput.location = (500, 300)
materialOutput.location = (1000, 300)
material.links.new(bsdfOutput, surfaceInput)

node_height = 300
Expand Down
Binary file modified MeddleTools/shaders.blend
Binary file not shown.
Binary file modified MeddleTools/shaders.blend1
Binary file not shown.

0 comments on commit 724b1d9

Please sign in to comment.