glTF defines materials using a common set of parameters that are based on widely used material representations from Physically-Based Rendering (PBR). Specifically, glTF uses the metallic-roughness material model. Using this declarative representation of materials enables a glTF file to be rendered consistently across platforms.
Functions | |
| MAXON_RESOURCE_DATABASE_SCOPE ("net.maxon.material.portbundle.gltf") | |
| MAXON_ATTRIBUTE (Color, EMISSIVEFACTOR, "emissiveFactor") | |
| MAXON_ATTRIBUTE (Color, NORMALTEXTURE, "normalTexture") | |
| MAXON_ATTRIBUTE (Float, NORMALSCALE, "normalScale") | |
| MAXON_ATTRIBUTE (Color, OCCLUSIONTEXTURE, "occlusionTexture") | |
| MAXON_ATTRIBUTE (Float, OCCLUSIONSTRENGTH, "occlusionStrength") | |
| MAXON_ATTRIBUTE (Color, EMISSIVETEXTURE, "emissiveTexture") | |
| MAXON_ATTRIBUTE (Id, ALPHAMODE, "alphaMode", RESOURCE_DEFINE(ENUM_BLEND, Id("BLEND"))) | |
| MAXON_ATTRIBUTE (Float, ALPHACUTOFF, "alphaCutoff") | |
| MAXON_ATTRIBUTE (Bool, DOUBLESIDED, "doubleSided") | |
| MAXON_ATTRIBUTE (ColorA, BASECOLORFACTOR, "baseColorFactor") | |
| MAXON_ATTRIBUTE (ColorA, BASECOLORTEXTURE, "baseColorTexture") | |
| MAXON_ATTRIBUTE (Float, METALLICFACTOR, "metallicFactor") | |
| MAXON_ATTRIBUTE (Float, ROUGHNESSFACTOR, "roughnessFactor") | |
| MAXON_ATTRIBUTE (Color, METALLICROUGHNESSTEXTURE, "metallicRoughnessTexture") | |
| MAXON_ATTRIBUTE (Group, GROUP_BASIC, "group.basic") | |
| MAXON_ATTRIBUTE (Group, GROUP_PBR_METALLIC_ROUGHNESS, "group.pbr_metallic_roughness") | |
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_RESOURCE_DATABASE_SCOPE | ( | "net.maxon.material.portbundle.gltf" | ) |
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Color | , |
| EMISSIVEFACTOR | , | ||
| "emissiveFactor" | |||
| ) |
The emissive color of the material. Default: [0,0,0].
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Color | , |
| NORMALTEXTURE | , | ||
| "normalTexture" | |||
| ) |
The tangent space normal map.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Float | , |
| NORMALSCALE | , | ||
| "normalScale" | |||
| ) |
The scale for X and Y components of normal map. Default: 1.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Color | , |
| OCCLUSIONTEXTURE | , | ||
| "occlusionTexture" | |||
| ) |
The occlusion map indicating areas of indirect lighting.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Float | , |
| OCCLUSIONSTRENGTH | , | ||
| "occlusionStrength" | |||
| ) |
Amount of occlusion from the occlusion map. Default: 1.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Color | , |
| EMISSIVETEXTURE | , | ||
| "emissiveTexture" | |||
| ) |
The emissive map controls the color and intensity of the light being emitted by the material.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Id | , |
| ALPHAMODE | , | ||
| "alphaMode" | , | ||
| RESOURCE_DEFINE(ENUM_BLEND, Id("BLEND")) | |||
| ) |
The alphaMpde defines how the alpha value of the main factor and texture should be interpreted map indicating areas of indirect lighting. Can be OPAQUE, MASK or BLEND. Default: "OPAQUE"
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Float | , |
| ALPHACUTOFF | , | ||
| "alphaCutoff" | |||
| ) |
The cutoff threshold. This value is only used for alpha mode MASK. Default: 0.5.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Bool | , |
| DOUBLESIDED | , | ||
| "doubleSided" | |||
| ) |
Specifies whether the material is double sided. Default: false.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | ColorA | , |
| BASECOLORFACTOR | , | ||
| "baseColorFactor" | |||
| ) |
The base color of the material. Default: [1,1,1,1].
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | ColorA | , |
| BASECOLORTEXTURE | , | ||
| "baseColorTexture" | |||
| ) |
The base color texture.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Float | , |
| METALLICFACTOR | , | ||
| "metallicFactor" | |||
| ) |
The metalness of the material. Default: 1.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Float | , |
| ROUGHNESSFACTOR | , | ||
| "roughnessFactor" | |||
| ) |
The roughness of the material. Default: 1.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Color | , |
| METALLICROUGHNESSTEXTURE | , | ||
| "metallicRoughnessTexture" | |||
| ) |
A single map for metalness and roughness! The metalness values is in the "b" and the roughness in the "g" color channel.
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Group | , |
| GROUP_BASIC | , | ||
| "group.basic" | |||
| ) |
| maxon::MATERIAL::PORTBUNDLE::GLTF::MAXON_ATTRIBUTE | ( | Group | , |
| GROUP_PBR_METALLIC_ROUGHNESS | , | ||
| "group.pbr_metallic_roughness" | |||
| ) |