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

WebGLRenderer: Clean up.

上级 085a6d6c
......@@ -19,15 +19,7 @@ THREE.WebGLRenderer = function ( parameters ) {
_stencil = parameters.stencil !== undefined ? parameters.stencil : true,
_antialias = parameters.antialias !== undefined ? parameters.antialias : false,
_premultipliedAlpha = parameters.premultipliedAlpha !== undefined ? parameters.premultipliedAlpha : true,
_preserveDrawingBuffer = parameters.preserveDrawingBuffer !== undefined ? parameters.preserveDrawingBuffer : false,
_clearColor = new THREE.Color( 0x000000 ),
_clearAlpha = 0,
_width = _canvas.width,
_height = _canvas.height,
_pixelRatio = 1;
_preserveDrawingBuffer = parameters.preserveDrawingBuffer !== undefined ? parameters.preserveDrawingBuffer : false;
var lights = [];
......@@ -38,7 +30,6 @@ THREE.WebGLRenderer = function ( parameters ) {
var morphInfluences = new Float32Array( 8 );
var sprites = [];
var lensFlares = [];
......@@ -95,16 +86,26 @@ THREE.WebGLRenderer = function ( parameters ) {
_usedTextureUnits = 0,
_scissor = new THREE.Vector4( 0, 0, _canvas.width, _canvas.height ),
//
_clearColor = new THREE.Color( 0x000000 ),
_clearAlpha = 0,
_width = _canvas.width,
_height = _canvas.height,
_pixelRatio = 1,
_scissor = new THREE.Vector4( 0, 0, _width, _height ),
_scissorTest = false,
_viewport = new THREE.Vector4( 0, 0, _canvas.width, _canvas.height ),
_viewport = new THREE.Vector4( 0, 0, _width, _height ),
// frustum
_frustum = new THREE.Frustum(),
// camera matrices cache
// camera matrices cache
_projScreenMatrix = new THREE.Matrix4(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册