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

Forgot to commit MeshDepthMaterial

上级 98dc841a
此差异已折叠。
此差异已折叠。
/**
* @author mr.doob / http://mrdoob.com/
*
* parameters = {
* near: <float>,
* far: <float>,
* wireframe: <boolean>,
* wireframe_linewidth: <float>
* }
*/
THREE.MeshDepthMaterial = function ( parameters ) {
this.near = 1;
this.far = 1000;
this.opacity = 1;
this.wireframe = false;
this.wireframe_linewidth = 1;
if ( parameters ) {
if ( parameters.near !== undefined ) this.near = parameters.near;
if ( parameters.far !== undefined ) this.far = parameters.far;
if ( parameters.opacity !== undefined ) this.opacity = parameters.opacity;
if ( parameters.wireframe !== undefined ) this.wireframe = parameters.wireframe;
if ( parameters.wireframe_linewidth !== undefined ) this.wireframe_linewidth = parameters.wireframe_linewidth;
}
this.__2near = 2 * this.near;
this.__farPlusNear = this.far + this.near;
this.__farMinusNear = this.far - this.near;
this.toString = function () {
return 'THREE.MeshDepthMaterial';
};
}
......@@ -722,6 +722,7 @@ THREE.CanvasRenderer = function () {
_context.moveTo( x0, y0 );
_context.lineTo( x1, y1 );
_context.lineTo( x2, y2 );
_context.lineTo( x0, y0 );
_context.closePath();
x1 -= x0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册