You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Color nodes.Output[coloring.WebColor]`description:"The factors for the base color of the material. This value defines linear multipliers for the sampled texels of the base color texture."`
150
+
ColorTexture nodes.Output[string]`description:"The base color texture. The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the base color of the material. If the fourth component (A) is present, it represents the linear alpha coverage of the material. Otherwise, the alpha coverage is equal to 1.0. The material.alphaMode property specifies how alpha is interpreted. The stored texels MUST NOT be premultiplied. When undefined, the texture MUST be sampled as having 1.0 in all components."`
151
+
MetallicFactor nodes.Output[float64]`description:"The factor for the metalness of the material. This value defines a linear multiplier for the sampled metalness values of the metallic-roughness texture."`
152
+
RoughnessFactor nodes.Output[float64]`description:"The factor for the roughness of the material. This value defines a linear multiplier for the sampled roughness values of the metallic-roughness texture."`
153
+
MetallicRoughnessTexture nodes.Output[string]`description:"The metallic-roughness texture. The metalness values are sampled from the B channel. The roughness values are sampled from the G channel. These values MUST be encoded with a linear transfer function. If other channels are present (R or A), they MUST be ignored for metallic-roughness calculations. When undefined, the texture MUST be sampled as having 1.0 in G and B components."`
154
+
EmissiveFactor nodes.Output[coloring.WebColor]`description:"The factors for the emissive color of the material. This value defines linear multipliers for the sampled texels of the emissive texture."`
153
155
154
156
// Extensions
155
157
IndexOfRefraction nodes.Output[float64]
@@ -256,88 +258,64 @@ type MaterialTransmissionExtensionNodeData struct {
256
258
Texture nodes.Output[PolyformTexture] `description:"A texture that defines the transmission percentage of the surface, stored in the R channel. This will be multiplied by transmissionFactor."`
return"The KHR_materials_transmission extension provides a way to define glTF 2.0 materials that are transparent to light in a physically plausible way. That is, it enables the creation of transparent materials that absorb, reflect and transmit light depending on the incident angle and the wavelength of light. Common uses cases for thin-surface transmissive materials include plastics and glass."
ThicknessFactor nodes.Output[float64]`description:"The thickness of the volume beneath the surface. The value is given in the coordinate space of the mesh. If the value is 0 the material is thin-walled. Otherwise the material is a volume boundary. The doubleSided property has no effect on volume boundaries. Range is [0, +inf)."`
282
+
AttenuationDistance nodes.Output[float64]`description:"Density of the medium given as the average distance that light travels in the medium before interacting with a particle. The value is given in world space. Range is (0, +inf)."`
283
+
AttenuationColor nodes.Output[coloring.WebColor]`description:"The color that white light turns into due to absorption when reaching the attenuation distance."`
return"By default, a glTF 2.0 material describes the scattering properties of a surface enclosing an infinitely thin volume. The surface defined by the mesh represents a thin wall. The volume extension makes it possible to turn the surface into an interface between volumes. The mesh to which the material is attached defines the boundaries of an homogeneous medium and therefore must be manifold. Volumes provide effects like refraction, absorption and scattering. Scattering is not subject of this extension."
AnisotropyStrength nodes.Output[float64]`description:"The anisotropy strength. When the anisotropy texture is present, this value is multiplied by the texture's blue channel."`
308
+
AnisotropyRotation nodes.Output[float64]`description:"The rotation of the anisotropy in tangent, bitangent space, measured in radians counter-clockwise from the tangent. When the anisotropy texture is present, this value provides additional rotation to the vectors in the texture."`
return"This extension defines the anisotropic property of a material as observable with brushed metals for example. An asymmetric specular lobe model is introduced to allow for such phenomena. The visually distinct feature of that lobe is the elongated appearance of the specular reflection."
342
320
}
343
321
@@ -348,24 +326,13 @@ type MaterialClearcoatExtensionNodeData struct {
0 commit comments