<commit_before>require 'mittsu/renderers/shaders/uniforms_utils'
require 'mittsu/renderers/shaders/uniforms_lib'
require 'mittsu/renderers/shaders/shader_chunk'

module Mittsu
  class ShaderLib_Instance
    attr_accessor :uniforms, :vertex_shader, :fragment_shader
    def initialize(options = {})
      @uniforms = options.fetch(:uniforms)
      @vertex_shader = options.fetch(:vertex_shader)
      @fragment_shader = options.fetch(:fragment_shader)
    end
  end

  ShaderLib = {
    basic: ShaderLib_Instance.new(
      uniforms: UniformsUtils.merge([
        UniformsLib[:common],
        UniformsLib[:fog],
        UniformsLib[:shadowmap]
      ]),

      vertex_shader: [
        ShaderChunk[:common],
        ShaderChunk[:map_pars_vertex],
        ShaderChunk[:lightmap_pars_vertex],
        ShaderChunk[:envmap_pars_vertex],
        ShaderChunk[:color_pars_vertex],
        ShaderChunk[:morphtarget_pars_vertex],
        ShaderChunk[:skinning_pars_vertex],
        ShaderChunk[:shadowmap_pars_vertex],
        ShaderChunk[:logdepthbuf_pars_vertex],

        "void main() {",

          ShaderChunk[:map_vertex],<commit_msg>patch: make ShareLib_Instance a private class<commit_after>require 'mittsu/renderers/shaders/uniforms_utils'
require 'mittsu/renderers/shaders/uniforms_lib'
require 'mittsu/renderers/shaders/shader_chunk'

module Mittsu
  class ShaderLib_Instance
    attr_accessor :uniforms, :vertex_shader, :fragment_shader
    def initialize(options = {})
      @uniforms = options.fetch(:uniforms)
      @vertex_shader = options.fetch(:vertex_shader)
      @fragment_shader = options.fetch(:fragment_shader)
    end
  end
  private_constant :ShaderLib_Instance

  ShaderLib = {
    basic: ShaderLib_Instance.new(
      uniforms: UniformsUtils.merge([
        UniformsLib[:common],
        UniformsLib[:fog],
        UniformsLib[:shadowmap]
      ]),

      vertex_shader: [
        ShaderChunk[:common],
        ShaderChunk[:map_pars_vertex],
        ShaderChunk[:lightmap_pars_vertex],
        ShaderChunk[:envmap_pars_vertex],
        ShaderChunk[:color_pars_vertex],
        ShaderChunk[:morphtarget_pars_vertex],
        ShaderChunk[:skinning_pars_vertex],
        ShaderChunk[:shadowmap_pars_vertex],
        ShaderChunk[:logdepthbuf_pars_vertex],

        "void main() {",

          ShaderChunk[:map_vertex],
{'fraction_non_alphanumeric': 0.10115730818688384, 'fraction_numerical': 0.0, 'mean_word_length': 3.668, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6529163', 'n_tokens_mistral': 726, 'n_tokens_neox': 701, 'n_words': 96}