<commit_before>import checkDependencies from '../../check-dependencies.js'
import fragmentShader from './io3d-material/fragment.glsl'
import vertexShader from './io3d-material/vertex.glsl'

// CONFIGS

export default checkDependencies ({
  three: true,
  aframe: false
}, function makeIo3dMaterial () {

  var DEFAULT_LIGHT_MAP_INTENSITY = 1.2
  var DEFAULT_LIGHT_MAP_EXPOSURE = 0.6
  var DEFAULT_LIGHT_MAP_FALLOFF = 0
  var DEFAULT_NORMAL_MAP_FACTOR = new THREE.Vector2(0.8, 0.8)

  function Io3dMaterial( params ) {
    THREE.ShaderMaterial.call( this, params )

    var params = params || {}
    this.lightMapExposure = params.lightMapExposure || DEFAULT_LIGHT_MAP_EXPOSURE
    this.lightMapFalloff = params.lightMapFalloff || DEFAULT_LIGHT_MAP_FALLOFF

    this.uniforms = THREE.UniformsUtils.merge( [
      THREE.UniformsLib[ "lights" ],
      THREE.UniformsLib[ "shadowmap" ],
      { diffuse: { value: params.diffuse || new THREE.Color(1.0, 1.0, 1.0) },<commit_msg>updates comments<commit_after>import checkDependencies from '../../check-dependencies.js'
import fragmentShader from './io3d-material/fragment.glsl'
import vertexShader from './io3d-material/vertex.glsl'

export default checkDependencies ({
  three: true,
  aframe: false
}, function makeIo3dMaterial () {

  // CONFIGS

  var DEFAULT_LIGHT_MAP_INTENSITY = 1.2
  var DEFAULT_LIGHT_MAP_EXPOSURE = 0.6
  var DEFAULT_LIGHT_MAP_FALLOFF = 0
  var DEFAULT_NORMAL_MAP_FACTOR = new THREE.Vector2(0.8, 0.8)

  // main

  function Io3dMaterial( params ) {
    THREE.ShaderMaterial.call( this, params )

    var params = params || {}
    this.lightMapExposure = params.lightMapExposure || DEFAULT_LIGHT_MAP_EXPOSURE
    this.lightMapFalloff = params.lightMapFalloff || DEFAULT_LIGHT_MAP_FALLOFF

    this.uniforms = THREE.UniformsUtils.merge( [
      THREE.UniformsLib[ "lights" ],
      THREE.UniformsLib[ "shadowmap" ],
      { diffuse: { value: params.diffuse || new THREE.Color(1.0, 1.0, 1.0) },
{'fraction_non_alphanumeric': 0.11224489795918367, 'fraction_numerical': 0.02040816326530612, 'mean_word_length': 4.041131105398458, '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': '6532422', 'n_tokens_mistral': 697, 'n_tokens_neox': 652, 'n_words': 130}