未验证 提交 d2db90c3 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #16381 from Mugen87/dev29

Examples: Clean up
......@@ -21,7 +21,7 @@ THREE.DragControls = function ( _objects, _camera, _domElement ) {
var _intersection = new THREE.Vector3();
var _worldPosition = new THREE.Vector3();
var _inverseMatrix = new THREE.Matrix4();
var _selected = null, _hovered = null;
//
......
......@@ -492,7 +492,7 @@ THREE.TrackballControls = function ( object, domElement ) {
function touchstart( event ) {
if ( _this.enabled === false ) return;
event.preventDefault();
switch ( event.touches.length ) {
......
......@@ -12,9 +12,9 @@ THREE.AnaglyphEffect = function ( renderer, width, height ) {
this.colorMatrixLeft = new THREE.Matrix3().fromArray( [
1.0671679973602295, -0.0016435992438346148, 0.0001777536963345483, // r out
-0.028107794001698494, -0.00019593400065787137, -0.0002875397040043026, // g out
-0.04279090091586113, 0.000015809757314855233, -0.00024287120322696865 // b out
1.0671679973602295, - 0.0016435992438346148, 0.0001777536963345483, // r out
- 0.028107794001698494, - 0.00019593400065787137, - 0.0002875397040043026, // g out
- 0.04279090091586113, 0.000015809757314855233, - 0.00024287120322696865 // b out
] );
......@@ -22,9 +22,9 @@ THREE.AnaglyphEffect = function ( renderer, width, height ) {
this.colorMatrixRight = new THREE.Matrix3().fromArray( [
-0.0355340838432312, -0.06440307199954987, 0.018319187685847282, // r out
-0.10269022732973099, 0.8079727292060852, -0.04835830628871918, // g out
0.0001224992738571018, -0.009558862075209618, 0.567823588848114 // b out
- 0.0355340838432312, - 0.06440307199954987, 0.018319187685847282, // r out
- 0.10269022732973099, 0.8079727292060852, - 0.04835830628871918, // g out
0.0001224992738571018, - 0.009558862075209618, 0.567823588848114 // b out
] );
......
......@@ -12,9 +12,9 @@ THREE.SelectionHelper = ( function () {
this.renderer = renderer;
this.startPoint = { x: 0, y: 0 };
this.pointTopLeft = { x: 0, y: 0 };
this.pointBottomRight = { x: 0, y: 0 };
this.startPoint = new THREE.Vector2();
this.pointTopLeft = new THREE.Vector2();
this.pointBottomRight = new THREE.Vector2();
this.isDown = false;
......
......@@ -17,7 +17,7 @@ THREE.ColorConverter = {
},
getHSV: function() {
getHSV: function () {
var hsl = {};
......@@ -46,7 +46,7 @@ THREE.ColorConverter = {
}(),
// where c, m, y, k is between 0 and 1
setCMYK: function ( color, c, m, y, k ) {
var r = ( 1 - c ) * ( 1 - k );
......@@ -62,7 +62,7 @@ THREE.ColorConverter = {
if ( target === undefined ) {
console.warn( 'THREE.ColorConverter: .getCMYK() target is now required' );
target = { c: 0, m: 0, y: 0, k:0 };
target = { c: 0, m: 0, y: 0, k: 0 };
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册