Class: Three::Loaders::RGBELoader

Inherits:
Object
  • Object
show all
Defined in:
lib/three/loaders/rgbe_loader.rb

Instance Method Summary collapse

Instance Method Details

#load(source, **parameters) {|texture| ... } ⇒ Object

Yields:

  • (texture)


8
9
10
11
12
# File 'lib/three/loaders/rgbe_loader.rb', line 8

def load(source, **parameters)
  texture = RGBETexture.new(source, **parameters)
  yield texture if block_given?
  texture
end