Class: Stagecraft::Materials::Shader

Inherits:
Base
  • Object
show all
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

#version

Instance Method Summary collapse

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