Skip to content

Commit

Permalink
Update nodes_shader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Onek8 authored Dec 19, 2024
1 parent cea55af commit 3383c25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions armory/blender/arm/material/cycles_nodes/nodes_shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ def parse_bsdfdiffuse(node: bpy.types.ShaderNodeBsdfDiffuse, out_socket: NodeSoc
state.out_roughness = c.parse_value_input(node.inputs[1])
state.out_specular = '0.0'

if bpy.app.version >= (4, 0, 0):
def parse_bsdfsheen(node: bpy.types.ShaderNodeBsdfSheen, out_socket: NodeSocket, state: ParserState) -> None:
if state.parse_surface:
c.write_normal(node.inputs[2])
state.out_basecol = c.parse_vector_input(node.inputs[0])
state.out_roughness = c.parse_value_input(node.inputs[1])

if bpy.app.version < (4, 1, 0):
def parse_bsdfglossy(node: bpy.types.ShaderNodeBsdfGlossy, out_socket: NodeSocket, state: ParserState) -> None:
Expand Down

0 comments on commit 3383c25

Please sign in to comment.