Skip to content

Commit 9f46c04

Browse files
neo2068CodeFHD
authored andcommitted
Adjust sheen socket in disney material
1 parent 7b4a9a6 commit 9f46c04

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

nodes/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
sockets.LuxCoreSocketFloat0to1,
5151
sockets.LuxCoreSocketFloat0to2,
5252
sockets.LuxCoreSocketBumpHeight,
53+
sockets.LuxCoreSocketFloatDisneySheen,
5354
sockets.LuxCoreSocketVector,
5455
sockets.LuxCoreSocketRoughness,
5556
sockets.LuxCoreSocketIOR,

nodes/materials/disney.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def init(self, context):
2525
self.add_input("LuxCoreSocketFloat0to1", "Specular Tint", 0)
2626
self.add_input("LuxCoreSocketFloat0to1", "Roughness", 0.2)
2727
self.add_input("LuxCoreSocketFloat0to1", "Anisotropic", 0)
28-
self.add_input("LuxCoreSocketFloatPositive", "Sheen", 0)
28+
self.add_input("LuxCoreSocketFloatDisneySheen", "Sheen", 0)
2929
self.add_input("LuxCoreSocketFloat0to1", "Sheen Tint", 0)
3030
self.add_input("LuxCoreSocketFloat0to1", "Clearcoat", 0)
3131
self.add_input("LuxCoreSocketFloat0to1", "Clearcoat Gloss", 1)

nodes/sockets.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ class LuxCoreSocketBumpHeight(bpy.types.NodeSocket, LuxCoreSocketFloat):
212212
precision=FLOAT_UI_PRECISION)
213213

214214

215+
class LuxCoreSocketFloatDisneySheen(bpy.types.NodeSocket, LuxCoreSocketFloat):
216+
default_value: FloatProperty(min=0, max=100, soft_max=10.0, description="Sheen value",
217+
update=utils_node.force_viewport_update,
218+
precision=FLOAT_UI_PRECISION)
219+
slider = True
220+
221+
215222
class LuxCoreSocketVector(bpy.types.NodeSocket, LuxCoreNodeSocket):
216223
color = Color.vector_texture
217224
default_value: FloatVectorProperty(name="", subtype="XYZ",

0 commit comments

Comments
 (0)