Class: Rgltf::OcclusionTextureInfo

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:) ⇒ 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

#strengthObject (readonly)

Returns the value of attribute strength.



30
31
32
# File 'lib/rgltf/properties/material.rb', line 30

def strength
  @strength
end