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