Class: Stagecraft::Materials::Shader
- Defined in:
- lib/stagecraft/materials/shader_material.rb
Constant Summary
Constants inherited from Base
Base::ALPHA_MODES, Base::BLENDS, Base::SIDES
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(wgsl:, uniforms: {}) ⇒ Shader
constructor
A new instance of Shader.
Methods inherited from Base
#transparent?, versioned_attribute
Constructor Details
#initialize(wgsl:, uniforms: {}) ⇒ Shader
Returns a new instance of Shader.
6 7 8 9 10 |
# File 'lib/stagecraft/materials/shader_material.rb', line 6 def initialize(wgsl:, uniforms: {}, **) super(**) self.wgsl = wgsl self.uniforms = uniforms end |