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