Class: Lightwave::LightwaveObject::TextureFalloff

Inherits:
Object
  • Object
show all
Defined in:
lib/lightwave.rb

Constant Summary collapse

FALLOFF_TYPES =
[:cubic, :spherical, :linear_x, :linear_y, :linear_z]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(strio) ⇒ TextureFalloff

Returns a new instance of TextureFalloff.



201
202
203
# File 'lib/lightwave.rb', line 201

def initialize(strio)
  @type, @vector  = FALLOFF_TYPES[strio.read_u2], strio.read_vector
end

Instance Attribute Details

#envelopeObject

Returns the value of attribute envelope.



200
201
202
# File 'lib/lightwave.rb', line 200

def envelope
  @envelope
end

#typeObject

Returns the value of attribute type.



200
201
202
# File 'lib/lightwave.rb', line 200

def type
  @type
end

#vectorObject

Returns the value of attribute vector.



200
201
202
# File 'lib/lightwave.rb', line 200

def vector
  @vector
end