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>
71 lines (64 loc) • 2.04 kB
JavaScript
'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/data
*/
var ShadersUniform = function () {
function ShadersUniform() {
_classCallCheck(this, ShadersUniform);
}
_createClass(ShadersUniform, null, [{
key: 'uniforms',
value: function uniforms() {
return {
'uTextureBackTest0': {
type: 't',
value: [],
typeGLSL: 'sampler2D'
},
'uTextureBackTest1': {
type: 't',
value: [],
typeGLSL: 'sampler2D'
},
'uOpacity0': {
type: 'f',
value: 1.0,
typeGLSL: 'float'
},
'uOpacity1': {
type: 'f',
value: 1.0,
typeGLSL: 'float'
},
'uType0': {
type: 'i',
value: 0,
typeGLSL: 'int'
},
'uType1': {
type: 'i',
value: 1,
typeGLSL: 'int'
},
'uTrackMouse': {
type: 'i',
value: 0,
typeGLSL: 'int'
},
'uMouse': {
type: 'v2',
value: new THREE.Vector2(),
typeGLSL: 'vec2'
}
};
}
}]);
return ShadersUniform;
}();
exports.default = ShadersUniform;
module.exports = exports['default'];