Browse Source

Clean up.

Mr.doob 9 years ago
parent
commit
b3acca6b10

+ 3 - 2
src/renderers/webgl/WebGLBufferRenderer.js

@@ -1,6 +1,6 @@
 /**
 /**
-* @author mrdoob / http://mrdoob.com/
-*/
+ * @author mrdoob / http://mrdoob.com/
+ */
 
 
 function WebGLBufferRenderer( _gl, extensions, _infoRender ) {
 function WebGLBufferRenderer( _gl, extensions, _infoRender ) {
 
 
@@ -18,6 +18,7 @@ function WebGLBufferRenderer( _gl, extensions, _infoRender ) {
 
 
 		_infoRender.calls ++;
 		_infoRender.calls ++;
 		_infoRender.vertices += count;
 		_infoRender.vertices += count;
+
 		if ( mode === _gl.TRIANGLES ) _infoRender.faces += count / 3;
 		if ( mode === _gl.TRIANGLES ) _infoRender.faces += count / 3;
 
 
 	}
 	}

+ 4 - 0
src/renderers/webgl/WebGLCapabilities.js

@@ -1,3 +1,7 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 function WebGLCapabilities( gl, extensions, parameters ) {
 function WebGLCapabilities( gl, extensions, parameters ) {
 
 
 	var maxAnisotropy;
 	var maxAnisotropy;

+ 4 - 2
src/renderers/webgl/WebGLClipping.js

@@ -1,3 +1,7 @@
+/**
+ * @author tschw
+ */
+
 import { Matrix3 } from '../../math/Matrix3';
 import { Matrix3 } from '../../math/Matrix3';
 import { Plane } from '../../math/Plane';
 import { Plane } from '../../math/Plane';
 
 
@@ -153,6 +157,4 @@ function WebGLClipping() {
 
 
 }
 }
 
 
-
-
 export { WebGLClipping };
 export { WebGLClipping };

+ 2 - 2
src/renderers/webgl/WebGLExtensions.js

@@ -1,6 +1,6 @@
 /**
 /**
-* @author mrdoob / http://mrdoob.com/
-*/
+ * @author mrdoob / http://mrdoob.com/
+ */
 
 
 function WebGLExtensions( gl ) {
 function WebGLExtensions( gl ) {
 
 

+ 4 - 4
src/renderers/webgl/WebGLGeometries.js

@@ -1,8 +1,8 @@
-import { BufferGeometry } from '../../core/BufferGeometry';
-
 /**
 /**
-* @author mrdoob / http://mrdoob.com/
-*/
+ * @author mrdoob / http://mrdoob.com/
+ */
+
+import { BufferGeometry } from '../../core/BufferGeometry';
 
 
 function WebGLGeometries( gl, properties, info ) {
 function WebGLGeometries( gl, properties, info ) {
 
 

+ 2 - 2
src/renderers/webgl/WebGLIndexedBufferRenderer.js

@@ -1,6 +1,6 @@
 /**
 /**
-* @author mrdoob / http://mrdoob.com/
-*/
+ * @author mrdoob / http://mrdoob.com/
+ */
 
 
 function WebGLIndexedBufferRenderer( _gl, extensions, _infoRender ) {
 function WebGLIndexedBufferRenderer( _gl, extensions, _infoRender ) {
 
 

+ 4 - 4
src/renderers/webgl/WebGLLights.js

@@ -1,11 +1,11 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 import { Color } from '../../math/Color';
 import { Color } from '../../math/Color';
 import { Vector3 } from '../../math/Vector3';
 import { Vector3 } from '../../math/Vector3';
 import { Vector2 } from '../../math/Vector2';
 import { Vector2 } from '../../math/Vector2';
 
 
-/**
-* @author mrdoob / http://mrdoob.com/
-*/
-
 function WebGLLights() {
 function WebGLLights() {
 
 
 	var lights = {};
 	var lights = {};

+ 4 - 4
src/renderers/webgl/WebGLObjects.js

@@ -1,10 +1,10 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 import { BufferAttribute } from '../../core/BufferAttribute';
 import { BufferAttribute } from '../../core/BufferAttribute';
 import { WebGLGeometries } from './WebGLGeometries';
 import { WebGLGeometries } from './WebGLGeometries';
 
 
-/**
-* @author mrdoob / http://mrdoob.com/
-*/
-
 function WebGLObjects( gl, properties, info ) {
 function WebGLObjects( gl, properties, info ) {
 
 
 	var geometries = new WebGLGeometries( gl, properties, info );
 	var geometries = new WebGLGeometries( gl, properties, info );

+ 4 - 0
src/renderers/webgl/WebGLPrograms.js

@@ -1,3 +1,7 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 import { WebGLProgram } from './WebGLProgram';
 import { WebGLProgram } from './WebGLProgram';
 import { BackSide, DoubleSide, FlatShading, CubeUVRefractionMapping, CubeUVReflectionMapping, GammaEncoding, LinearEncoding } from '../../constants';
 import { BackSide, DoubleSide, FlatShading, CubeUVRefractionMapping, CubeUVReflectionMapping, GammaEncoding, LinearEncoding } from '../../constants';
 
 

+ 2 - 2
src/renderers/webgl/WebGLProperties.js

@@ -1,6 +1,6 @@
 /**
 /**
-* @author fordacious / fordacious.github.io
-*/
+ * @author fordacious / fordacious.github.io
+ */
 
 
 function WebGLProperties() {
 function WebGLProperties() {
 
 

+ 5 - 5
src/renderers/webgl/WebGLShadowMap.js

@@ -1,3 +1,8 @@
+/**
+ * @author alteredq / http://alteredqualia.com/
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 import { FrontSide, BackSide, DoubleSide, RGBAFormat, NearestFilter, PCFShadowMap, RGBADepthPacking } from '../../constants';
 import { FrontSide, BackSide, DoubleSide, RGBAFormat, NearestFilter, PCFShadowMap, RGBADepthPacking } from '../../constants';
 import { WebGLRenderTarget } from '../WebGLRenderTarget';
 import { WebGLRenderTarget } from '../WebGLRenderTarget';
 import { ShaderMaterial } from '../../materials/ShaderMaterial';
 import { ShaderMaterial } from '../../materials/ShaderMaterial';
@@ -10,11 +15,6 @@ import { Vector2 } from '../../math/Vector2';
 import { Matrix4 } from '../../math/Matrix4';
 import { Matrix4 } from '../../math/Matrix4';
 import { Frustum } from '../../math/Frustum';
 import { Frustum } from '../../math/Frustum';
 
 
-/**
- * @author alteredq / http://alteredqualia.com/
- * @author mrdoob / http://mrdoob.com/
- */
-
 function WebGLShadowMap( _renderer, _lights, _objects, capabilities ) {
 function WebGLShadowMap( _renderer, _lights, _objects, capabilities ) {
 
 
 	var _gl = _renderer.context,
 	var _gl = _renderer.context,

+ 4 - 4
src/renderers/webgl/WebGLState.js

@@ -1,10 +1,10 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 import { NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessEqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceFront, CullFaceBack, CullFaceNone, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, NoBlending, NormalBlending } from '../../constants';
 import { NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessEqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceFront, CullFaceBack, CullFaceNone, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, NoBlending, NormalBlending } from '../../constants';
 import { Vector4 } from '../../math/Vector4';
 import { Vector4 } from '../../math/Vector4';
 
 
-/**
-* @author mrdoob / http://mrdoob.com/
-*/
-
 function WebGLState( gl, extensions, paramThreeToGL ) {
 function WebGLState( gl, extensions, paramThreeToGL ) {
 
 
 	var _this = this;
 	var _this = this;

+ 4 - 4
src/renderers/webgl/WebGLTextures.js

@@ -1,10 +1,10 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ */
+
 import { LinearFilter, NearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, FloatType, HalfFloatType, ClampToEdgeWrapping, NearestMipMapLinearFilter, NearestMipMapNearestFilter } from '../../constants';
 import { LinearFilter, NearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, FloatType, HalfFloatType, ClampToEdgeWrapping, NearestMipMapLinearFilter, NearestMipMapNearestFilter } from '../../constants';
 import { _Math } from '../../math/Math';
 import { _Math } from '../../math/Math';
 
 
-/**
-* @author mrdoob / http://mrdoob.com/
-*/
-
 function WebGLTextures( _gl, extensions, state, properties, capabilities, paramThreeToGL, info ) {
 function WebGLTextures( _gl, extensions, state, properties, capabilities, paramThreeToGL, info ) {
 
 
 	var _infoMemory = info.memory;
 	var _infoMemory = info.memory;