Class: Rgltf::OcclusionTextureInfo
- Inherits:
-
TextureInfo
- Object
- Properties::Base
- TextureInfo
- Rgltf::OcclusionTextureInfo
- Defined in:
- lib/rgltf/properties/material.rb
Instance Attribute Summary collapse
-
#strength ⇒ Object
readonly
Returns the value of attribute strength.
Attributes inherited from TextureInfo
Attributes inherited from Properties::Base
#extensions, #extras, #index, #name, #owner_type, #source_json
Instance Method Summary collapse
-
#initialize(json, document:) ⇒ OcclusionTextureInfo
constructor
A new instance of OcclusionTextureInfo.
Methods inherited from TextureInfo
Methods inherited from Properties::Base
#extension, #nested_properties, #parse_extensions!
Constructor Details
#initialize(json, document:) ⇒ OcclusionTextureInfo
Returns a new instance of OcclusionTextureInfo.
32 33 34 35 |
# File 'lib/rgltf/properties/material.rb', line 32 def initialize(json, document:) super @strength = json.fetch('strength', 1.0) end |
Instance Attribute Details
#strength ⇒ Object (readonly)
Returns the value of attribute strength.
30 31 32 |
# File 'lib/rgltf/properties/material.rb', line 30 def strength @strength end |