Sha256: 80fbf63c2a694426867ad16713ac6f9dae0598b2987f57e3c71895429e164fd0

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mittsu-opengl-0.5.1 lib/mittsu/opengl/shader/chunk.rb
mittsu-opengl-0.5.0 lib/mittsu/opengl/shader/chunk.rb