{"size": 23988, "ext": "js", "max_stars_repo_path": "docs/assets/js/kvlt07/main.js", "max_stars_repo_name": "mtoutside/webgl-kvlt", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "docs/assets/js/kvlt07/main.js", "max_issues_repo_name": "mtoutside/webgl-kvlt", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "docs/assets/js/kvlt07/main.js", "max_forks_repo_name": "mtoutside/webgl-kvlt", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 111.0555555556, "max_line_length": 13619, "alphanum_fraction": 0.6071369018}
/******/ (function(modules) { // webpackBootstrap
/******/ 	// install a JSONP callback for chunk loading
/******/ 	function webpackJsonpCallback(data) {
/******/ 		var chunkIds = data[0];
/******/ 		var moreModules = data[1];
/******/ 		var executeModules = data[2];
/******/
/******/ 		// add "moreModules" to the modules object,
/******/ 		// then flag all "chunkIds" as loaded and fire callback
/******/ 		var moduleId, chunkId, i = 0, resolves = [];
/******/ 		for(;i < chunkIds.length; i++) {
/******/ 			chunkId = chunkIds[i];
/******/ 			if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ 				resolves.push(installedChunks[chunkId][0]);
/******/ 			}
/******/ 			installedChunks[chunkId] = 0;
/******/ 		}
/******/ 		for(moduleId in moreModules) {
/******/ 			if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ 				modules[moduleId] = moreModules[moduleId];
/******/ 			}
/******/ 		}
/******/ 		if(parentJsonpFunction) parentJsonpFunction(data);
/******/
/******/ 		while(resolves.length) {
/******/ 			resolves.shift()();
/******/ 		}
/******/
/******/ 		// add entry modules from loaded chunk to deferred list
/******/ 		deferredModules.push.apply(deferredModules, executeModules || []);
/******/
/******/ 		// run deferred modules when all chunks ready
/******/ 		return checkDeferredModules();
/******/ 	};
/******/ 	function checkDeferredModules() {
/******/ 		var result;
/******/ 		for(var i = 0; i < deferredModules.length; i++) {
/******/ 			var deferredModule = deferredModules[i];
/******/ 			var fulfilled = true;
/******/ 			for(var j = 1; j < deferredModule.length; j++) {
/******/ 				var depId = deferredModule[j];
/******/ 				if(installedChunks[depId] !== 0) fulfilled = false;
/******/ 			}
/******/ 			if(fulfilled) {
/******/ 				deferredModules.splice(i--, 1);
/******/ 				result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
/******/ 			}
/******/ 		}
/******/
/******/ 		return result;
/******/ 	}
/******/
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// object to store loaded and loading chunks
/******/ 	// undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ 	// Promise = chunk loading, 0 = chunk loaded
/******/ 	var installedChunks = {
/******/ 		"kvlt07/main.js": 0
/******/ 	};
/******/
/******/ 	var deferredModules = [];
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
/******/ 	var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ 	jsonpArray.push = webpackJsonpCallback;
/******/ 	jsonpArray = jsonpArray.slice();
/******/ 	for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
/******/ 	var parentJsonpFunction = oldJsonpFunction;
/******/
/******/
/******/ 	// add entry module to deferred list
/******/ 	deferredModules.push(["./src/kvlt07/main.js","vendor.js"]);
/******/ 	// run deferred modules when ready
/******/ 	return checkDeferredModules();
/******/ })
/************************************************************************/
/******/ ({

/***/ "./src/kvlt07/Canvas/_Config.js":
/*!**************************************!*\
  !*** ./src/kvlt07/Canvas/_Config.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nvar Config = {\n  width: 100,\n  // Canvasの幅\n  height: 100,\n  // Canvasの高さ\n  halfWidth: 50,\n  halfHeight: 50,\n  cameraZ: 500,\n  // カメラのz座標\n  dpr: 1,\n  // device pixel ratio\n  aspectRatio: 1.0 // 画面アスペクト比\n\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Config);\n\n//# sourceURL=webpack:///./src/kvlt07/Canvas/_Config.js?");

/***/ }),

/***/ "./src/kvlt07/Canvas/_index.js":
/*!*************************************!*\
  !*** ./src/kvlt07/Canvas/_index.js ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Canvas; });\n/* harmony import */ var three__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! three */ \"./node_modules/three/build/three.module.js\");\n/* harmony import */ var three_examples_jsm_controls_OrbitControls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! three/examples/jsm/controls/OrbitControls */ \"./node_modules/three/examples/jsm/controls/OrbitControls.js\");\n/* harmony import */ var _shader_frag_glsl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shader/frag.glsl */ \"./src/kvlt07/Canvas/shader/frag.glsl\");\n/* harmony import */ var _shader_frag_glsl__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_shader_frag_glsl__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _shader_vert_glsl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shader/vert.glsl */ \"./src/kvlt07/Canvas/shader/vert.glsl\");\n/* harmony import */ var _shader_vert_glsl__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_shader_vert_glsl__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _Config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./_Config */ \"./src/kvlt07/Canvas/_Config.js\");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\n\n\n\nvar Canvas = /*#__PURE__*/function () {\n  function Canvas() {\n    _classCallCheck(this, Canvas);\n\n    this.canvas = document.createElement('canvas');\n    this.ctx = this.canvas.getContext('2d');\n    this.clock = new three__WEBPACK_IMPORTED_MODULE_0__[\"Clock\"]();\n    this.container = document.getElementById('CanvasContainer');\n    this.particleIndexArray = [];\n    this.uniforms = {\n      time: {\n        type: 'f',\n        value: 0.0\n      },\n      size: {\n        type: 'f',\n        value: 10.0\n      }\n    }; // audio\n\n    this.fftSize = 2048;\n    this.frequencyRange = {\n      bass: [20, 140],\n      lowMid: [140, 400],\n      mid: [400, 2600],\n      highMid: [2600, 5200],\n      treble: [5200, 14000]\n    };\n    this.setConfig();\n    this.renderer = new three__WEBPACK_IMPORTED_MODULE_0__[\"WebGLRenderer\"]({\n      alpha: true,\n      antialias: true\n    });\n    this.renderer.setSize(_Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].width, _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].height);\n    this.renderer.setPixelRatio(_Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].dpr);\n    this.container.appendChild(this.renderer.domElement);\n    this.resizeFunction = this.resize.bind(this);\n    this.updateFunction = this.update.bind(this); // リサイズイベントを設定\n\n    window.addEventListener('resize', this.resizeFunction);\n    this.scene = new three__WEBPACK_IMPORTED_MODULE_0__[\"Scene\"](); // Cameraを作成\n\n    this.camera = new three__WEBPACK_IMPORTED_MODULE_0__[\"PerspectiveCamera\"](45, window.innerWidth / window.innerHeight, 1, 10000);\n    this.camera.position.set(0, 0, 100);\n    this.z = Math.min(window.innerWidth, window.innerHeight);\n    this.camera.lookAt(0, 0, this.z);\n    this.controls = new three_examples_jsm_controls_OrbitControls__WEBPACK_IMPORTED_MODULE_1__[\"OrbitControls\"](this.camera, this.renderer.domElement); // 初期化\n\n    this.init();\n  }\n\n  _createClass(Canvas, [{\n    key: \"setConfig\",\n    value: function setConfig() {\n      // 親要素のサイズを取得\n      var domRect = this.container.getBoundingClientRect();\n      var width = domRect.width;\n      var height = domRect.height;\n      _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].dpr = Math.min(window.devicePixelRatio, 2);\n      _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].width = width;\n      _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].height = height;\n      _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].halfWidth = _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].width / 2;\n      _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].halfHeight = _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].height / 2;\n      _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].aspectRatio = _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].width / _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].height;\n    }\n  }, {\n    key: \"resizeScene\",\n    value: function resizeScene() {\n      this.renderer.setSize(_Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].width, _Config__WEBPACK_IMPORTED_MODULE_4__[\"default\"].height);\n    }\n  }, {\n    key: \"init\",\n    value: function init() {\n      this.navigatorMediaDevices = navigator.mediaDevices || (navigator.mozGetUserMedia || navigator.webkitGetUserMedia ? {\n        getUserMedia: function getUserMedia(c) {\n          return new Promise(function (y, n) {\n            (navigator.mozGetUserMedia || navigator.webkitGetUserMedia).call(navigator, c, y, n);\n          });\n        }\n      } : null);\n\n      if (this.navigatorMediaDevices) {\n        this.initAudio();\n        this.initVideo();\n      }\n\n      this.start();\n    }\n  }, {\n    key: \"initVideo\",\n    value: function initVideo() {\n      var _this = this;\n\n      this.video = document.getElementById('video');\n      this.video.autoplay = true;\n      var option = {\n        video: true,\n        audio: false\n      };\n      navigator.mediaDevices.getUserMedia(option).then(function (stream) {\n        _this.video.srcObject = stream;\n\n        _this.video.addEventListener('loadeddata', function () {\n          _this.videoWidth = _this.video.videoWidth;\n          _this.videoHeight = _this.video.videoHeight;\n\n          _this.createParticles();\n        });\n      })[\"catch\"](function (error) {\n        console.log(error); // this.showAlert();\n      });\n    }\n  }, {\n    key: \"initAudio\",\n    value: function initAudio() {\n      var _this2 = this;\n\n      var audioListener = new three__WEBPACK_IMPORTED_MODULE_0__[\"AudioListener\"]();\n      this.audio = new three__WEBPACK_IMPORTED_MODULE_0__[\"Audio\"](audioListener); // loader\n\n      var audioLoader = new three__WEBPACK_IMPORTED_MODULE_0__[\"AudioLoader\"]();\n      audioLoader.load('assets/audio/above-the-clouds.mp3', function (buffer) {\n        _this2.audio.setBuffer(buffer);\n\n        _this2.audio.setLoop(true);\n\n        _this2.audio.setVolume(0.5);\n\n        _this2.audio.play();\n      }); // analyser\n\n      this.analyser = new three__WEBPACK_IMPORTED_MODULE_0__[\"AudioAnalyser\"](this.audio, this.fftSize);\n      /*\n      document.body.addEventListener('click', () => {\n        if (this.audio) {\n          if (this.audio.isPlaying) {\n            this.audio.pause();\n          } else {\n            this.audio.play();\n          }\n        }\n      });\n      */\n    }\n  }, {\n    key: \"hexToRgb\",\n    value: function hexToRgb(hex) {\n      var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n      return {\n        r: parseInt(result[1], 16) / 255,\n        g: parseInt(result[2], 16) / 255,\n        b: parseInt(result[3], 16) / 255\n      };\n    }\n  }, {\n    key: \"createParticles\",\n    value: function createParticles() {\n      var imageData = this.getImageData(this.video);\n      this.geometry = new three__WEBPACK_IMPORTED_MODULE_0__[\"BufferGeometry\"]();\n      this.geometry.morphAttributes = {};\n      this.material = new three__WEBPACK_IMPORTED_MODULE_0__[\"ShaderMaterial\"]({\n        uniforms: this.uniforms,\n        vertexShader: _shader_vert_glsl__WEBPACK_IMPORTED_MODULE_3___default.a,\n        fragmentShader: _shader_frag_glsl__WEBPACK_IMPORTED_MODULE_2___default.a,\n        transparent: true,\n        depthWrite: false,\n        blending: three__WEBPACK_IMPORTED_MODULE_0__[\"AdditiveBlending\"]\n      });\n      var vertices = [];\n      var colors = [];\n      var colorsPerFace = ['#ff4b78', '#16e36d', '#162cf8', '#2016e3'];\n      var step = 3; // 格子状にパーティクルを並べる\n\n      for (var y = 0, height = imageData.height; y < height; y += step) {\n        for (var x = 0, width = imageData.width; x < width; x += step) {\n          var index = (x + y * width) * 4;\n          this.particleIndexArray.push(index);\n          var gray = (imageData.data[index] + imageData.data[index + 1] + imageData.data[index + 2]) / 3;\n          var z = gray < 300 ? gray : 10000;\n          vertices.push(x - imageData.width / 2, -y + imageData.height / 2, z);\n          var rgbColor = this.hexToRgb(colorsPerFace[Math.floor(Math.random() * colorsPerFace.length)]);\n          colors.push(rgbColor.r, rgbColor.g, rgbColor.b);\n        }\n      }\n\n      var verticesArray = new Float32Array(vertices);\n      this.geometry.addAttribute('position', new three__WEBPACK_IMPORTED_MODULE_0__[\"BufferAttribute\"](verticesArray, 3));\n      var colorsArray = new Float32Array(colors);\n      this.geometry.addAttribute('color', new three__WEBPACK_IMPORTED_MODULE_0__[\"BufferAttribute\"](colorsArray, 3));\n      this.particles = new three__WEBPACK_IMPORTED_MODULE_0__[\"Points\"](this.geometry, this.material);\n      this.scene.add(this.particles);\n    }\n  }, {\n    key: \"getImageData\",\n    value: function getImageData(image, useCache) {\n      if (useCache && this.imageCache) {\n        return this.imageCache;\n      }\n\n      var w = image.videoWidth;\n      var h = image.videoHeight;\n      this.canvas.width = w;\n      this.canvas.height = h;\n      this.ctx.translate(w, 0);\n      this.ctx.scale(-1, 1);\n      this.ctx.drawImage(image, 0, 0);\n      this.imageCache = this.ctx.getImageData(0, 0, w, h);\n      return this.imageCache;\n    }\n    /**\n     * https://github.com/processing/p5.js-sound/blob/v0.14/lib/p5.sound.js#L1765\n     *\n     * @param data\n     * @param _frequencyRange\n     * @returns {number} 0.0 ~ 1.0\n     */\n\n  }, {\n    key: \"getFrequencyRangeValue\",\n    value: function getFrequencyRangeValue(data, _frequencyRange) {\n      var nyquist = 48000 / 2;\n      var lowIndex = Math.round(_frequencyRange[0] / nyquist * data.length);\n      var highIndex = Math.round(_frequencyRange[1] / nyquist * data.length);\n      var total = 0;\n      var numFrequencies = 0;\n\n      for (var i = lowIndex; i <= highIndex; i++) {\n        total += data[i];\n        numFrequencies += 1;\n      }\n\n      return total / numFrequencies / 255;\n    }\n  }, {\n    key: \"mesh\",\n    value: function mesh() {\n      this.geometry = new three__WEBPACK_IMPORTED_MODULE_0__[\"BoxGeometry\"](10, 10, 10);\n      this.material = new three__WEBPACK_IMPORTED_MODULE_0__[\"MeshNormalMaterial\"]();\n      this.mesh = new three__WEBPACK_IMPORTED_MODULE_0__[\"Mesh\"](this.geometry, this.material);\n      this.scene.add(this.mesh);\n    }\n  }, {\n    key: \"start\",\n    value: function start() {\n      this.resize();\n      this.update();\n    }\n  }, {\n    key: \"resize\",\n    value: function resize() {\n      this.setConfig();\n      this.resizeScene();\n    }\n  }, {\n    key: \"update\",\n    value: function update() {\n      this.clock.getDelta();\n      var t = this.clock.elapsedTime;\n      this.uniforms.time.value += 0.5;\n      var r, g, b; // audio\n\n      if (this.analyser) {\n        var data = this.analyser.getFrequencyData();\n        var bass = this.getFrequencyRangeValue(data, this.frequencyRange.bass);\n        var mid = this.getFrequencyRangeValue(data, this.frequencyRange.mid);\n        var treble = this.getFrequencyRangeValue(data, this.frequencyRange.treble);\n        r = bass;\n        g = mid;\n        b = treble;\n      } // video\n\n\n      if (this.particles) {\n        var useCache = parseInt(t) % 2 === 0;\n        var imageData = this.getImageData(this.video, useCache);\n        var count = 0;\n\n        for (var i = 0, length = this.particles.geometry.attributes.position.array.length; i < length; i += 3) {\n          var index = this.particleIndexArray[count];\n          var gray = (imageData.data[index] + imageData.data[index + 1] + imageData.data[index + 2]) / 3;\n          var threshold = 300;\n\n          if (gray < threshold) {\n            if (gray < threshold / 3) {\n              this.particles.geometry.attributes.position.array[i + 2] = gray * r * 5;\n            } else if (gray < threshold / 2) {\n              this.particles.geometry.attributes.position.array[i + 2] = gray * g * 5;\n            } else {\n              this.particles.geometry.attributes.position.array[i + 2] = gray * b * 5;\n            }\n          } else {\n            this.particles.geometry.attributes.position.array[i + 2] = 10000;\n          }\n\n          count++;\n        }\n\n        this.uniforms.size.value = (r + g + b) / 3 * 35 + 5;\n        this.particles.geometry.attributes.position.needsUpdate = true;\n      }\n\n      this.renderer.render(this.scene, this.camera);\n      requestAnimationFrame(this.updateFunction);\n    }\n  }]);\n\n  return Canvas;\n}();\n\n\n\n//# sourceURL=webpack:///./src/kvlt07/Canvas/_index.js?");

/***/ }),

/***/ "./src/kvlt07/Canvas/shader/frag.glsl":
/*!********************************************!*\
  !*** ./src/kvlt07/Canvas/shader/frag.glsl ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("module.exports = \"precision mediump float;\\n\\n#define PI 3.141592653589\\n#define PI2 6.28318530718\\n\\nuniform float time;\\n\\nvarying vec4 vMvPosition;\\nvarying vec3 vColor;\\n\\nvoid main() {\\n  vec2 uv = gl_PointCoord.xy * 2.0 - 1.0;\\n  float orb = 0.1 / length(uv * 1.0);\\n  orb = smoothstep(0.0, 1.0, orb);\\n  vec3 color = vec3(orb) * vColor;\\n  gl_FragColor = vec4(color, 1.0);\\n}\\n\"\n\n//# sourceURL=webpack:///./src/kvlt07/Canvas/shader/frag.glsl?");

/***/ }),

/***/ "./src/kvlt07/Canvas/shader/vert.glsl":
/*!********************************************!*\
  !*** ./src/kvlt07/Canvas/shader/vert.glsl ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("module.exports = \"precision mediump float;\\n\\nattribute vec3 color;\\n\\nuniform float time;\\nuniform float size;\\n\\nvarying vec4 vMvPosition;\\nvarying vec3 vColor;\\n\\nfloat map(float value, float inputMin, float inputMax, float outputMin, float outputMax) {\\n  return outputMin + (outputMax - outputMin) * ((value - inputMin) / (inputMax - inputMin));\\n}\\n\\nvec3 rotateVec3(vec3 p, float angle, vec3 axis){\\n  vec3 a = normalize(axis);\\n  float s = sin(angle);\\n  float c = cos(angle);\\n  float r = 1.0 - c;\\n  mat3 m = mat3(\\n    a.x * a.x * r + c,\\n    a.y * a.x * r + a.z * s,\\n    a.z * a.x * r - a.y * s,\\n    a.x * a.y * r - a.z * s,\\n    a.y * a.y * r + c,\\n    a.z * a.y * r + a.x * s,\\n    a.x * a.z * r + a.y * s,\\n    a.y * a.z * r - a.x * s,\\n    a.z * a.z * r + c\\n  );\\n  return m * p;\\n}\\n\\n// hsvの値をrgbに変換\\nvec3 hsv2rgb(vec3 c) {\\n  vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\\n  vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\\n  return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\\n}\\n\\nvoid main() {\\n  vec4 mvPosition = modelViewMatrix * vec4(position, 1.0);\\n  vMvPosition = mvPosition;\\n  vColor = color;\\n\\n  gl_PointSize = size;\\n  gl_Position = projectionMatrix * mvPosition;\\n}\\n\"\n\n//# sourceURL=webpack:///./src/kvlt07/Canvas/shader/vert.glsl?");

/***/ }),

/***/ "./src/kvlt07/main.js":
/*!****************************!*\
  !*** ./src/kvlt07/main.js ***!
  \****************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Canvas_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Canvas/_index */ \"./src/kvlt07/Canvas/_index.js\");\n\n\n(function () {\n  new _Canvas_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n})();\n\n//# sourceURL=webpack:///./src/kvlt07/main.js?");

/***/ })

/******/ });