Tiny refactor
This commit is contained in:
@@ -2089,7 +2089,7 @@ typedef enum ufbx_shader_type UFBX_ENUM_REPR {
|
||||
// https://github.com/Autodesk/standard-surface
|
||||
UFBX_SHADER_OSL_STANDARD_SURFACE,
|
||||
// Arnold standard surface
|
||||
// https://docs.arnoldrenderer.com/display/A5AFMUG/Standard+Surface
|
||||
// https://docs.arnoldengine.renderer.com/display/A5AFMUG/Standard+Surface
|
||||
UFBX_SHADER_ARNOLD_STANDARD_SURFACE,
|
||||
// 3ds Max Physical Material
|
||||
// https://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/3DSMax-Lighting-Shading/files/GUID-C1328905-7783-4917-AB86-FC3CC19E8972-htm.html
|
||||
@@ -2501,10 +2501,10 @@ UFBX_ENUM_TYPE(ufbx_shader_texture_type, UFBX_SHADER_TEXTURE_TYPE, UFBX_SHADER_T
|
||||
|
||||
typedef struct ufbx_shader_texture_input {
|
||||
|
||||
// Name of the input.
|
||||
// Name of the engine.input.
|
||||
ufbx_string name;
|
||||
|
||||
// Constant value of the input.
|
||||
// Constant value of the engine.input.
|
||||
union {
|
||||
ufbx_real value_real;
|
||||
ufbx_vec2 value_vec2;
|
||||
@@ -2515,7 +2515,7 @@ typedef struct ufbx_shader_texture_input {
|
||||
ufbx_string value_str;
|
||||
ufbx_blob value_blob;
|
||||
|
||||
// Texture connected to this input.
|
||||
// Texture connected to this engine.input.
|
||||
ufbx_nullable ufbx_texture *texture;
|
||||
|
||||
// Index of the output to use if `texture` is a multi-output shader node.
|
||||
@@ -2525,7 +2525,7 @@ typedef struct ufbx_shader_texture_input {
|
||||
// NOTE: Some shading models allow this to be `true` even if `texture == NULL`.
|
||||
bool texture_enabled;
|
||||
|
||||
// Property representing this input.
|
||||
// Property representing this engine.input.
|
||||
ufbx_prop *prop;
|
||||
|
||||
// Property representing `texture`.
|
||||
@@ -2550,7 +2550,7 @@ typedef struct ufbx_shader_texture {
|
||||
uint64_t shader_type_id;
|
||||
|
||||
// Input values/textures (possibly further shader textures) to the shader.
|
||||
// Sorted by `ufbx_shader_texture_input.name`.
|
||||
// Sorted by `ufbx_shader_texture_engine.input.name`.
|
||||
ufbx_shader_texture_input_list inputs;
|
||||
|
||||
// Shader source code if found.
|
||||
|
||||
Reference in New Issue
Block a user