Implement export of Shader BSDF nodes #13

Merged
Bogdan Nagirniak merged 13 commits from BogdanNagirniak/blender:matx-shader-bsdf-nodes into matx-export-material 2023-09-07 11:22:44 +02:00
Collaborator

Purpose

Shader nodes has to be implemented. Adjust parsing system for export shaders.

Technical steps

  1. Added supported shader types to NodeItem::Type, added Type::Any.
  2. Created class ShaderNodeParser special for parse shaders.
  3. Added type conversion to get_input_link() and get_input_default().
  4. Added file templates for export new shaders. Implemented AddShader, BSDFDiffuse, Emission, MixShader.

Notes

Other shaders aren't implemented, added TODOs. They'll be implemented in next PRs.

### Purpose Shader nodes has to be implemented. Adjust parsing system for export shaders. ### Technical steps 1. Added supported shader types to `NodeItem::Type`, added `Type::Any`. 2. Created `class ShaderNodeParser` special for parse shaders. 3. Added type conversion to `get_input_link()` and `get_input_default()`. 4. Added file templates for export new shaders. Implemented `AddShader`, `BSDFDiffuse`, `Emission`, `MixShader`. ### Notes Other shaders aren't implemented, added TODOs. They'll be implemented in next PRs.
Bogdan Nagirniak added 10 commits 2023-09-06 19:47:12 +02:00
Bogdan Nagirniak requested review from Brian Savery (AMD) 2023-09-06 19:47:46 +02:00
Bogdan Nagirniak requested review from Vasyl Pidhirskyi 2023-09-06 19:47:46 +02:00
Georgiy Markelov was assigned by Bogdan Nagirniak 2023-09-06 19:47:53 +02:00
Bogdan Nagirniak self-assigned this 2023-09-06 19:47:53 +02:00
Bogdan Nagirniak added 1 commit 2023-09-06 22:15:09 +02:00
Implemented add, multiply shaders to NodeItem.
Bogdan Nagirniak added 1 commit 2023-09-06 22:49:12 +02:00
Brian Savery (AMD) approved these changes 2023-09-07 00:59:41 +02:00
Georgiy Markelov approved these changes 2023-09-07 10:43:32 +02:00
Georgiy Markelov left a comment
Owner

Works fine.

Works fine.
Bogdan Nagirniak added 1 commit 2023-09-07 11:04:12 +02:00
Bogdan Nagirniak merged commit a464b5854e into matx-export-material 2023-09-07 11:22:44 +02:00
Sign in to join this conversation.
No Label
No Milestone
3 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#13
No description provided.