Class: Three::Postprocessing::OutputPass

Inherits:
Object
  • Object
show all
Defined in:
lib/three/postprocessing/output_pass.rb

Constant Summary collapse

PROPERTY_NAMES =
{
  enabled: "enabled"
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backend: nil, composer: nil, **parameters) ⇒ OutputPass

Returns a new instance of OutputPass.



15
16
17
18
19
20
# File 'lib/three/postprocessing/output_pass.rb', line 15

def initialize(backend: nil, composer: nil, **parameters)
  @backend = backend || composer&.backend || Backends::ThreeJS.new
  @enabled = true
  @handle = @backend.create_output_pass
  set_values(parameters)
end

Instance Attribute Details

#backendObject (readonly)

Returns the value of attribute backend.



12
13
14
# File 'lib/three/postprocessing/output_pass.rb', line 12

def backend
  @backend
end

#handleObject (readonly)

Returns the value of attribute handle.



12
13
14
# File 'lib/three/postprocessing/output_pass.rb', line 12

def handle
  @handle
end