MaterialX: add color nodes #17

Merged
Bogdan Nagirniak merged 10 commits from matx-add-color-nodes into matx-export-material 2023-09-11 18:57:06 +02:00

Purpose

Add support for Color nodes

Technical steps

Added:

  • Gamma

Partially implemented:

  • Light Falloff
  • Light Path

Not implemented:

  • Color Ramp
  • Curves Float
  • Curves RGB
  • Wavelength
### Purpose Add support for Color nodes ### Technical steps Added: * Gamma Partially implemented: * Light Falloff * Light Path Not implemented: * Color Ramp * Curves Float * Curves RGB * Wavelength
Georgiy Markelov added 9 commits 2023-09-11 16:39:06 +02:00
Georgiy Markelov requested review from Brian Savery (AMD) 2023-09-11 16:39:16 +02:00
Georgiy Markelov requested review from Bogdan Nagirniak 2023-09-11 16:39:16 +02:00
Georgiy Markelov requested review from Vasyl Pidhirskyi 2023-09-11 16:39:17 +02:00
Bogdan Nagirniak requested changes 2023-09-11 16:52:37 +02:00
@ -0,0 +8,4 @@
NodeItem GammaNodeParser::compute()
{
NodeItem color = get_input_value("Color", NodeItem::Type::Color3);
Collaborator

Color4 ?

Color4 ?
@ -0,0 +13,4 @@
NodeItem res = create_node("power", NodeItem::Type::Color3);
res.set_input("in1", color);
res.set_input("in2", gamma);
Collaborator

color ^ gamma

color ^ gamma
Georgiy Markelov added 1 commit 2023-09-11 17:36:26 +02:00
Bogdan Nagirniak approved these changes 2023-09-11 18:56:19 +02:00
Bogdan Nagirniak merged commit 14ab54453f into matx-export-material 2023-09-11 18:57:06 +02:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: DagerD/blender#17
No description provided.