UNPKG

ami-cjs.js

Version:

<p align="center"> <img src="https://cloud.githubusercontent.com/assets/214063/23213764/78ade038-f90c-11e6-8208-4fcade5f3832.png" width="60%"> </p>

82 lines (72 loc) 2.25 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * @module shaders/localizer/uniforms */ var _class = function () { function _class() { _classCallCheck(this, _class); } _createClass(_class, null, [{ key: 'uniforms', /** * Shaders data uniforms */ value: function uniforms() { return { 'uCanvasWidth': { type: 'f', value: 0., typeGLSL: 'float' }, 'uCanvasHeight': { type: 'f', value: 0., typeGLSL: 'float' }, 'uSlice': { type: 'v4', value: [0.0, 0.0, 0.0, 0.0], typeGLSL: 'vec4' }, 'uPlane1': { type: 'v4', value: [0.0, 0.0, 0.0, 0.0], typeGLSL: 'vec4' }, 'uPlaneColor1': { type: 'v3', value: [1.0, 1.0, 0.0], typeGLSL: 'vec3' }, 'uPlane2': { type: 'v4', value: [0.0, 0.0, 0.0, 0.0], typeGLSL: 'vec4' }, 'uPlaneColor2': { type: 'v3', value: [1.0, 1.0, 0.0], typeGLSL: 'vec3' }, 'uPlane3': { type: 'v4', value: [0.0, 0.0, 0.0, 0.0], typeGLSL: 'vec4' }, 'uPlaneColor3': { type: 'v3', value: [1.0, 1.0, 0.0], typeGLSL: 'vec3' } }; } }]); return _class; }(); exports.default = _class; module.exports = exports['default'];