func (n *NormalTexture) MarshalJSON() ([]byte, error) {
    type alias NormalTexture
    if n.Scale != nil && *n.Scale == 1 {
        return json.Marshal(&struct {
            Scale float64 `json:"scale,omitempty"`