Class: Three::RGBETexture
- Inherits:
-
Texture
- Object
- EventDispatcher
- Texture
- Three::RGBETexture
- Defined in:
- lib/three/textures/rgbe_texture.rb
Instance Attribute Summary
Attributes inherited from Texture
#center, #color_space, #flip_y, #id, #mag_filter, #mapping, #matrix, #matrix_auto_update, #min_filter, #offset, #repeat, #rotation, #source, #user_data, #uuid, #wrap_s, #wrap_t
Instance Method Summary collapse
-
#initialize(source, mapping: Three::EquirectangularReflectionMapping, color_space: Three::LinearSRGBColorSpace, flip_y: true, wrap_s: Three::ClampToEdgeWrapping, wrap_t: Three::ClampToEdgeWrapping, mag_filter: Three::LinearFilter, min_filter: Three::LinearFilter, offset: nil, repeat: nil, center: nil, rotation: 0, matrix_auto_update: true, matrix: nil) ⇒ RGBETexture
constructor
A new instance of RGBETexture.
- #to_h ⇒ Object
Methods inherited from Texture
allocate_id, #dispose, #update_matrix
Methods included from Dirty
#add_dirty_dependent, #dirty?, #dirty_dependents, #dirty_field?, #dirty_fields, #mark_clean!, #mark_dirty!, #remove_dirty_dependent
Methods inherited from EventDispatcher
#add_event_listener, #dispatch_event, #has_event_listener?, #remove_event_listener
Constructor Details
#initialize(source, mapping: Three::EquirectangularReflectionMapping, color_space: Three::LinearSRGBColorSpace, flip_y: true, wrap_s: Three::ClampToEdgeWrapping, wrap_t: Three::ClampToEdgeWrapping, mag_filter: Three::LinearFilter, min_filter: Three::LinearFilter, offset: nil, repeat: nil, center: nil, rotation: 0, matrix_auto_update: true, matrix: nil) ⇒ RGBETexture
Returns a new instance of RGBETexture.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/three/textures/rgbe_texture.rb', line 7 def initialize( source, mapping: Three::EquirectangularReflectionMapping, color_space: Three::LinearSRGBColorSpace, flip_y: true, wrap_s: Three::ClampToEdgeWrapping, wrap_t: Three::ClampToEdgeWrapping, mag_filter: Three::LinearFilter, min_filter: Three::LinearFilter, offset: nil, repeat: nil, center: nil, rotation: 0, matrix_auto_update: true, matrix: nil ) super( source, mapping: mapping, color_space: color_space, flip_y: flip_y, wrap_s: wrap_s, wrap_t: wrap_t, mag_filter: mag_filter, min_filter: min_filter, offset: offset, repeat: repeat, center: center, rotation: rotation, matrix_auto_update: matrix_auto_update, matrix: matrix ) end |
Instance Method Details
#to_h ⇒ Object
41 42 43 |
# File 'lib/three/textures/rgbe_texture.rb', line 41 def to_h super.merge(type: "RGBETexture") end |