View Source GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoAppearanceMaterial (google_api_content_warehouse v0.4.0)

Representation of a single material that can describe a geometry surface. See technical definitions of these fields via the description and link at https://www.cityjson.org/specs/2.0.0/#material-object.

Attributes

  • diffuseColor (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoAppearanceMaterialRgbColor.t, default: nil) - The color that this material shows under pure white light when incoming light is reflected in all directions equally.
  • isNull (type: boolean(), default: nil) - is_null=true is used to represent 'null' material references. There may only be one is_null=true Material per CityJsonProto, and it must not have any other fields set.
  • isSmooth (type: boolean(), default: nil) - Whether this material has an even, regular surface or consistency.
  • name (type: String.t, default: nil) - The name of this material.
  • shininess (type: number(), default: nil) - The degree to which this material reflects light; value is [0,1].
  • transparency (type: number(), default: nil) - The degree to which this material allows light through; value is [0,1], with 1.0 being completely transparent.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoAppearanceMaterial{
    diffuseColor:
      GoogleApi.ContentWarehouse.V1.Model.GeostoreCityJsonProtoAppearanceMaterialRgbColor.t()
      | nil,
    isNull: boolean() | nil,
    isSmooth: boolean() | nil,
    name: String.t() | nil,
    shininess: number() | nil,
    transparency: number() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.