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>
138 lines (130 loc) • 3.5 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',
/**
* Shaders data uniforms
*/
value: function uniforms() {
return {
'uTextureSize': {
type: 'i',
value: 0,
typeGLSL: 'int'
},
'uTextureContainer': {
type: 'tv',
value: [],
typeGLSL: 'sampler2D',
length: 7
},
'uDataDimensions': {
type: 'iv',
value: [0, 0, 0],
typeGLSL: 'ivec3'
},
'uWorldToData': {
type: 'm4',
value: new THREE.Matrix4(),
typeGLSL: 'mat4'
},
'uWindowCenterWidth': {
type: 'fv1',
value: [0.0, 0.0],
typeGLSL: 'float',
length: 2
},
'uRescaleSlopeIntercept': {
type: 'fv1',
value: [0.0, 0.0],
typeGLSL: 'float',
length: 2
},
'uNumberOfChannels': {
type: 'i',
value: 1,
typeGLSL: 'int'
},
'uBitsAllocated': {
type: 'i',
value: 8,
typeGLSL: 'int'
},
'uInvert': {
type: 'i',
value: 0,
typeGLSL: 'int'
},
'uLut': {
type: 'i',
value: 0,
typeGLSL: 'int'
},
'uTextureLUT': {
type: 't',
value: [],
typeGLSL: 'sampler2D'
},
'uPixelType': {
type: 'i',
value: 0,
typeGLSL: 'int'
},
'uPackedPerPixel': {
type: 'i',
value: 1,
typeGLSL: 'int'
},
'uInterpolation': {
type: 'i',
value: 1,
typeGLSL: 'int'
},
'uCanvasWidth': {
type: 'f',
value: 0.,
typeGLSL: 'float'
},
'uCanvasHeight': {
type: 'f',
value: 0.,
typeGLSL: 'float'
},
'uBorderColor': {
type: 'v3',
value: [1.0, 0.0, 0.5],
typeGLSL: 'vec3'
},
'uBorderWidth': {
type: 'f',
value: 2.,
typeGLSL: 'float'
},
'uBorderMargin': {
type: 'f',
value: 2.,
typeGLSL: 'float'
},
'uBorderDashLength': {
type: 'f',
value: 10.,
typeGLSL: 'float'
}
};
}
}]);
return ShadersUniform;
}();
exports.default = ShadersUniform;
module.exports = exports['default'];