Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ExtensionName defines the PBRSpecularGlossiness unique key.
ExtensionName = "KHR_materials_pbrSpecularGlossiness"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PBRSpecularGlossiness ¶
type PBRSpecularGlossiness struct { DiffuseFactor *[4]float32 `json:"diffuseFactor,omitempty" validate:"omitempty,dive,gte=0,lte=1"` DiffuseTexture *gltf.TextureInfo `json:"diffuseTexture,omitempty"` SpecularFactor *[3]float32 `json:"specularFactor,omitempty" validate:"omitempty,dive,gte=0,lte=1"` GlossinessFactor *float32 `json:"glossinessFactor,omitempty" validate:"omitempty,gte=0,lte=1"` SpecularGlossinessTexture *gltf.TextureInfo `json:"specularGlossinessTexture,omitempty"` }
PBRSpecularGlossiness defines a specular-glossiness material model.
func (*PBRSpecularGlossiness) MarshalJSON ¶
func (p *PBRSpecularGlossiness) MarshalJSON() ([]byte, error)
MarshalJSON marshal the pbr with the correct default values.
func (*PBRSpecularGlossiness) UnmarshalJSON ¶
func (p *PBRSpecularGlossiness) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshal the pbr with the correct default values.
Click to show internal directories.
Click to hide internal directories.