Class: Rgltf::NormalTextureInfo

Inherits:
TextureInfo show all
Defined in:
lib/rgltf/properties/material.rb

Instance Attribute Summary collapse

Attributes inherited from TextureInfo

#tex_coord, #texture

Attributes inherited from Properties::Base

#extensions, #extras, #index, #name, #owner_type, #source_json

Instance Method Summary collapse

Methods inherited from TextureInfo

#transform

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

#scaleObject (readonly)

Returns the value of attribute scale.



21
22
23
# File 'lib/rgltf/properties/material.rb', line 21

def scale
  @scale
end