Class: Three::Postprocessing::OutputPass
- Inherits:
-
Object
- Object
- Three::Postprocessing::OutputPass
- Defined in:
- lib/three/postprocessing/output_pass.rb
Constant Summary collapse
- PROPERTY_NAMES =
{ enabled: "enabled" }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
readonly
Returns the value of attribute backend.
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
Instance Method Summary collapse
-
#initialize(backend: nil, composer: nil, **parameters) ⇒ OutputPass
constructor
A new instance of OutputPass.
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
#backend ⇒ Object (readonly)
Returns the value of attribute backend.
12 13 14 |
# File 'lib/three/postprocessing/output_pass.rb', line 12 def backend @backend end |
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
12 13 14 |
# File 'lib/three/postprocessing/output_pass.rb', line 12 def handle @handle end |