提交 300f8281 编写于 作者: M Mr.doob

TransformControls: Disable ToneMapping.

上级 5eb71d51
......@@ -738,7 +738,8 @@ THREE.TransformControlsGizmo = function () {
depthWrite: false,
transparent: true,
side: THREE.DoubleSide,
fog: false
fog: false,
toneMapped: false
} );
var gizmoLineMaterial = new THREE.LineBasicMaterial( {
......@@ -746,7 +747,8 @@ THREE.TransformControlsGizmo = function () {
depthWrite: false,
transparent: true,
linewidth: 1,
fog: false
fog: false,
toneMapped: false
} );
// Make unique material for each axis/color
......@@ -811,7 +813,7 @@ THREE.TransformControlsGizmo = function () {
var scaleHandleGeometry = new THREE.BoxBufferGeometry( 0.125, 0.125, 0.125 );
var lineGeometry = new THREE.BufferGeometry( );
var lineGeometry = new THREE.BufferGeometry();
lineGeometry.setAttribute( 'position', new THREE.Float32BufferAttribute( [ 0, 0, 0, 1, 0, 0 ], 3 ) );
var CircleGeometry = function ( radius, arc ) {
......@@ -1568,7 +1570,7 @@ THREE.TransformControlsPlane = function () {
THREE.Mesh.call( this,
new THREE.PlaneBufferGeometry( 100000, 100000, 2, 2 ),
new THREE.MeshBasicMaterial( { visible: false, wireframe: true, side: THREE.DoubleSide, transparent: true, opacity: 0.1 } )
new THREE.MeshBasicMaterial( { visible: false, wireframe: true, side: THREE.DoubleSide, transparent: true, opacity: 0.1, toneMapped: false } )
);
this.type = 'TransformControlsPlane';
......
......@@ -760,7 +760,8 @@ var TransformControlsGizmo = function () {
depthWrite: false,
transparent: true,
side: DoubleSide,
fog: false
fog: false,
toneMapped: false
} );
var gizmoLineMaterial = new LineBasicMaterial( {
......@@ -768,7 +769,8 @@ var TransformControlsGizmo = function () {
depthWrite: false,
transparent: true,
linewidth: 1,
fog: false
fog: false,
toneMapped: false
} );
// Make unique material for each axis/color
......@@ -833,7 +835,7 @@ var TransformControlsGizmo = function () {
var scaleHandleGeometry = new BoxBufferGeometry( 0.125, 0.125, 0.125 );
var lineGeometry = new BufferGeometry( );
var lineGeometry = new BufferGeometry();
lineGeometry.setAttribute( 'position', new Float32BufferAttribute( [ 0, 0, 0, 1, 0, 0 ], 3 ) );
var CircleGeometry = function ( radius, arc ) {
......@@ -1590,7 +1592,7 @@ var TransformControlsPlane = function () {
Mesh.call( this,
new PlaneBufferGeometry( 100000, 100000, 2, 2 ),
new MeshBasicMaterial( { visible: false, wireframe: true, side: DoubleSide, transparent: true, opacity: 0.1 } )
new MeshBasicMaterial( { visible: false, wireframe: true, side: DoubleSide, transparent: true, opacity: 0.1, toneMapped: false } )
);
this.type = 'TransformControlsPlane';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册