Class: TinyGLTF::Texture
- Inherits:
-
Object
show all
- Includes:
- Base
- Defined in:
- lib/tiny_gltf.rb,
ext/tiny_gltf/rb_tiny_gltf_init.c
Instance Attribute Summary
Attributes included from Base
#model
Instance Method Summary
collapse
Methods included from Base
included, #inspect, #to_h, #to_json
Instance Method Details
#sampler ⇒ Object
519
520
521
|
# File 'lib/tiny_gltf.rb', line 519
def sampler
sampler_index ? model.samplers[sampler_index] : model.default_sampler
end
|
#source ⇒ Object
515
516
517
|
# File 'lib/tiny_gltf.rb', line 515
def source
source_index ? model.images[source_index] : model.default_image
end
|