Sha256: 8df19f203a0c3b78f6c99ba86ee13b04294ecabbdb4dc5219841e445eb7acbd8

Contents?: true

Size: 263 Bytes

Versions: 17

Compression:

Stored size: 263 Bytes

Contents

module Mittsu
  ShaderChunk = Hash.new do |chunks, key|
    file_name = "#{key.to_s}.glsl"
    file_path = File.join(__dir__, 'shader_chunk', file_name)
    chunk = File.read(file_path)
    # chunk = "// #{chunk_name}\n#{chunk}"
    chunks[key] = chunk
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mittsu-0.4.1 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.4.0 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.3.3 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.3.2 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.3.1 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.3.0 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.2.4 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.2.3 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.2.2 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.2.1 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.2.0 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.1.7 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.1.6 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.1.5 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.1.4 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.1.3 lib/mittsu/renderers/shaders/shader_chunk.rb
mittsu-0.1.2 lib/mittsu/renderers/shaders/shader_chunk.rb