language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | mrdoob | three.js | eb44f5a9cf6530b0ca80459803d43ddfecc75c69.json | Fix some characters. | docs/manual/zh/introduction/FAQ.html | @@ -10,7 +10,7 @@
<body>
<h1>常见问题([name])</h1>
- <h2>哪一种三维物体格式能够得到最好地支持呢?</h2>
+ <h2>哪一种三维物体格式能够得到最好地支持?</h2>
<div>
<p>
推荐使用glTF(gl传输格式)来对三维物体进行导入和导出,由于glTF这种格式是专注于在程序运行时呈现三维物体的,所以它的传输效率非常高,且加载速度非常快。
@@ -46,8 +46,8 @@ <h2>如何在窗口调整大小时保持场景比例不变?</h2>
<h2>为什么我的物体的一部分是不可见的?</h2>
<p>
- 这可能是由于面消隐而... | false |
Other | mrdoob | three.js | 12129ac36685b74702b2820d0927c60e49e10b89.json | Pull request comments + eslint
Signed-off-by: Riccardo Padovani <rpadovani@nextbit.it> | examples/js/loaders/GLTFLoader.js | @@ -338,7 +338,7 @@ THREE.GLTFLoader = ( function () {
case 'directional':
lightNode = new THREE.DirectionalLight( color );
- lightNode.target.position.set( 0, 0, -1 );
+ lightNode.target.position.set( 0, 0, - 1 );
lightNode.add( lightNode.target );
break;
@@ -356,7 +356,7 @@ THREE.GLTFLoad... | false |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/core/Font.html | @@ -8,53 +8,55 @@
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
- <h1>[name]</h1>
+ <h1>字体([name])</h1>
<p class="desc">
- Create a set of [page:Shape Shapes] representing a font loaded in JSON format.<br /><br />
+ 以JSON格式,创建一系列的[page:Shape Shape](形状)来表示一个字体。
+ <br /><br />
... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/core/Shape.html | @@ -10,11 +10,11 @@
<body>
[page:Path] →
- <h1>[name]</h1>
+ <h1>形状([name])</h1>
<p class="desc">
- Defines an arbitrary 2d shape plane using paths with optional holes. It can be used with [page:ExtrudeGeometry],
- [page:ShapeGeometry], to get points, or to get triangulated faces.
+ 使用路径以及可选的孔洞来定义... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/core/ShapePath.html | @@ -10,81 +10,80 @@
<body>
[page:CurvePath] →
- <h1>[name]</h1>
+ <h1>形状路径([name])</h1>
<p class="desc">
- This class is used to convert a series of shapes to an array of [page:Path]s, for example an SVG shape to a
- path (see the example below). It is used internally by [page:Font] to convert a fo... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/curves/ArcCurve.html | @@ -10,22 +10,22 @@
<body>
[page:EllipseCurve] →
- <h1>[name]</h1>
+ <h1>弧线([name])</h1>
- <p class="desc">Alias for [page:EllipseCurve]</p>
+ <p class="desc">[page:EllipseCurve]的别名</p>
- <h2>Properties</h2>
- <p>See the [page:EllipseCurve] class for common properties.</p>
+ <h2>属性</h2>
+ <p>请参阅... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/curves/CatmullRomCurve3.html | @@ -12,10 +12,11 @@
<h1>[name]</h1>
- <p class="desc">Create a smooth 3d spline curve from a series of points using the
- [link:https://en.wikipedia.org/wiki/Centripetal_Catmull-Rom_spline Catmull-Rom] algorithm.</p>
+ <p class="desc">
+ 使用[link:https://en.wikipedia.org/wiki/Centripetal_Catmull-Rom_spline ... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/curves/CubicBezierCurve.html | @@ -10,15 +10,15 @@
<body>
[page:Curve] →
- <h1>[name]</h1>
+ <h1>二维三次贝塞尔曲线([name])</h1>
<p class="desc">
- Create a smooth 2d
- <a href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:Bezier_curve.svg" target="_blank">cubic bezier curve</a>,
- defined by a start point, endpoin... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/curves/CubicBezierCurve3.html | @@ -10,15 +10,15 @@
<body>
[page:Curve] →
- <h1>[name]</h1>
+ <h1>三维三次贝塞尔曲线[name]</h1>
<p class="desc">
- Create a smooth 3d
- <a href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:Bezier_curve.svg" target="_blank">cubic bezier curve</a>,
- defined by a start point, endpoint ... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/curves/QuadraticBezierCurve3.html | @@ -10,15 +10,15 @@
<body>
[page:Curve] →
- <h1>[name]</h1>
+ <h1>三维二次贝塞尔曲线[name]</h1>
<p class="desc">
- Create a smooth 3d
- <a href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:B%C3%A9zier_2_big.gif" target="_blank">quadratic bezier curve</a>,
- defined by a startpoint, e... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/extras/curves/SplineCurve.html | @@ -10,14 +10,13 @@
<body>
[page:Curve] →
- <h1>[name]</h1>
+ <h1>样条曲线([name])</h1>
<p class="desc">
- Create a smooth 2d spline curve from a series of points. Internally this uses
- [page:Interpolations.CatmullRom] to create the curve.
+ 从一系列的点中,创建一个平滑的二维样条曲线。内部使用[page:Interpolations.CatmullRom]... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/geometries/ParametricBufferGeometry.html | @@ -10,9 +10,9 @@
<body>
[page:BufferGeometry] →
- <h1>[name]</h1>
+ <h1>参数化缓冲几何体([name])</h1>
- <p class="desc">Generate geometry representing a parametric surface.</p>
+ <p class="desc">生成由参数表示其表面的几何体。</p>
<iframe id="scene" src="scenes/geometry-browser.html#ParametricBufferGeometry"></iframe>
... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/geometries/ParametricGeometry.html | @@ -10,9 +10,9 @@
<body>
[page:Geometry] →
- <h1>[name]</h1>
+ <h1>参数化几何体([name])</h1>
- <p class="desc">Generate geometry representing a parametric surface.</p>
+ <p class="desc">生成由参数表示其表面的几何体。</p>
<iframe id="scene" src="scenes/geometry-browser.html#ParametricGeometry"></iframe>
@@ -32,7 +32... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/math/Ray.html | @@ -23,7 +23,7 @@ <h2>构造函数</h2>
<h3>[name]( [param:Vector3 origin], [param:Vector3 direction] )</h3>
<p>
[page:Vector3 origin] - (可选)[page:Ray](射线)的原点,默认值是一个位于(0, 0, 0)的[page:Vector3]。<br />
- [page:Vector3 direction] - [page:Vector3] [page:Ray](射线)的方向。该向量必须被标准化(使用[page:Vector3.normalize]函数),这样才能使方法正常运行。
+ [... | true |
Other | mrdoob | three.js | dc928be6d0b1867dfcfe549f8cdb7cd4de5f538d.json | Translate some files in extras and math floder. | docs/api/zh/math/Vector2.html | @@ -8,36 +8,33 @@
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
- <h1>[name]</h1>
+ <h1>二维向量([name])</h1>
<p class="desc">
- Class representing a 2D [link:https://en.wikipedia.org/wiki/Vector_space vector].
+ 表示2D [link:https://en.wikipedia.org/wiki/Vector_space vector](二维向量... | true |
Other | mrdoob | three.js | a653acd8e185e4696c641b40849bbc53a5ab0483.json | Translate LineCurves in curves folder. | docs/api/zh/extras/curves/LineCurve.html | @@ -10,41 +10,42 @@
<body>
[page:Curve] →
- <h1>[name]</h1>
+ <h1>二维线段曲线[name]</h1>
- <p class="desc">A curve representing a 2d line segment.</p>
+ <p class="desc">一个表示二维线段的曲线。</p>
- <h2>Constructor</h2>
+ <h2>构造函数</h2>
<h3>[name]( [param:Vector2 v1], [param:Vector2 v2] )</h3>
<p>
- [p... | true |
Other | mrdoob | three.js | a653acd8e185e4696c641b40849bbc53a5ab0483.json | Translate LineCurves in curves folder. | docs/api/zh/extras/curves/LineCurve3.html | @@ -10,40 +10,41 @@
<body>
[page:Curve] →
- <h1>[name]</h1>
+ <h1>三维线段曲线([name])</h1>
- <p class="desc">A curve representing a 3d line segment.</p>
+ <p class="desc">一个表示三维线段的曲线。</p>
- <h2>Constructor</h2>
+ <h2>构造函数</h2>
<h3>[name]( [param:Vector3 v1], [param:Vector3 v2] )</h3>
<p>
- ... | true |
Other | mrdoob | three.js | f2595bea084ee1b1ed0136087cf81533862c4d69.json | Update necessary word for vocabulary checking | docs/api/en/renderers/WebGLRenderer.html | @@ -253,7 +253,7 @@ <h3>[property:Boolean sortObjects]</h3>
Note: Sorting is used to attempt to properly render objects that have some degree of transparency.
By definition, sorting objects may not work in all cases. Depending on the needs of application,
- it may be neccessary to turn off sorting and use oth... | false |
Other | mrdoob | three.js | df6c0df9ee317b0ac96eab34e43d15f6c0d9dbd3.json | update title with new name | examples/webgl_lines_colorsplines.html | @@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <title>three.js webgl - lines - splines</title>
+ <title>three.js webgl - lines - color splines</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
@@ -... | false |
Other | mrdoob | three.js | dfb9871ce8ac2ce5e99f40a6e6c1fe35036b944c.json | remove old examples | examples/webgl_lines_colors.html | @@ -1,272 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>three.js webgl - lines - cubes - colors</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <style>
- body {
- background-color: #000000;
- marg... | true |
Other | mrdoob | three.js | dfb9871ce8ac2ce5e99f40a6e6c1fe35036b944c.json | remove old examples | examples/webgl_lines_splines.html | @@ -1,240 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <title>three.js webgl - lines - splines</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <style>
- body {
- background-color: #000000;
- margin: 0px... | true |
Other | mrdoob | three.js | 6ef2798ee0d91f4e123142be664455fe018c16ef.json | Remove optionalTarget: More clean up | src/objects/Mesh.js | @@ -141,9 +141,11 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
var uvC = new Vector2();
var barycoord = new Vector3();
+ var triangle = new Triangle();
var intersectionPoint = new Vector3();
var intersectionPointWorld = new Vector3();
+ var faceNormal = new Vector3();
... | true |
Other | mrdoob | three.js | 6ef2798ee0d91f4e123142be664455fe018c16ef.json | Remove optionalTarget: More clean up | src/objects/Points.js | @@ -58,14 +58,15 @@ Points.prototype = Object.assign( Object.create( Object3D.prototype ), {
var localThreshold = threshold / ( ( this.scale.x + this.scale.y + this.scale.z ) / 3 );
var localThresholdSq = localThreshold * localThreshold;
var position = new Vector3();
+ var intersectPoint = new Vector3();
... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/BufferAttribute.html | @@ -11,204 +11,187 @@
<h1>[name]</h1>
<p class="desc">
- This class stores data for an attribute (such as vertex positions, face indices, normals,
- colors, UVs, and any custom attributes ) associated with a [page:BufferGeometry], which allows
- for more efficient passing of data to the GPU. See that page fo... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/BufferGeometry.html | @@ -11,22 +11,21 @@
<h1>[name]</h1>
<p>
- An efficient representation of mesh, line, or point geometry. Includes vertex positions, face
- indices, normals, colors, UVs, and custom attributes within buffers, reducing the cost of
- passing all this data to the GPU.
+ 是面片、线或点几何体的有效表述。包括顶点位置,面片索引、法相量、颜色值、UV 坐标... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/Clock.html | @@ -9,78 +9,76 @@
</head>
<body>
<h1>[name]</h1>
-
<p class="desc">
- Object for keeping track of time. This uses <a href="https://developer.mozilla.org/en-US/docs/Web/API/Performance/now">performance.now()</a>
- if it is available, otherwise it reverts to the less accurate <a href="https://developer.mozill... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/DirectGeometry.html | @@ -11,97 +11,92 @@
<h1>[name]</h1>
<p class="desc">
- This class is used internally to convert from [page:Geometry] to [page:BufferGeometry].
+ 该类在内部被用于 [page:Geometry] 到 [page:BufferGeometry] 的转换。
</p>
-
-
- <h2>Constructor</h2>
+ <h2>构造函数</h2>
<h3>[name]()</h3>
- <p>This creates a new [nam... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/EventDispatcher.html | @@ -11,14 +11,14 @@
<h1>[name]</h1>
<p class="desc">
- JavaScript events for custom objects.<br />
+ 自定义对象的 JavaScript 事件。<br />
[link:https://github.com/mrdoob/eventdispatcher.js Eventdispatcher on GitHub]
</p>
- <h2>Example</h2>
+ <h2>示例</h2>
<code>
-// Adding events to a custom object
+//... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/Face3.html | @@ -11,13 +11,12 @@
<h1>[name]</h1>
<p class="desc">
- Triangular face used in [page:Geometry]. These are created automatically for all
- standard geometry types, however if you are building a custom geometry you will have to
- create them manually.
+ 在 [page:Geometry] 中被使用到的三角面片。这些三角面片会为所有标准几何体自动创建。
+ 然... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/Geometry.html | @@ -12,17 +12,16 @@ <h1>[name]</h1>
<div class="desc">
<p>
- Geometry is a user-friendly alternative to [page:BufferGeometry]. Geometries store attributes
- (vertex positions, faces, colors, etc.) using objects like [page:Vector3] or [page:Color] that
- are easier to read and edit, but less efficient than ty... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/InstancedBufferAttribute.html | @@ -13,31 +13,31 @@
<h1>[name]</h1>
<p class="desc">
- An instanced version of [page:BufferAttribute].
+ [page:BufferAttribute] 的实例化版本。
</p>
- <h2>Constructor</h2>
+ <h2>构造函数</h2>
<h3>[name]( [param:TypedArray array], [param:Integer itemSize], [param:Number meshPerAttribute] )</h3>
<p>
</p>
... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/InstancedBufferGeometry.html | @@ -13,37 +13,37 @@
<h1>[name]</h1>
<p class="desc">
- An instanced version of [page:BufferGeometry].
+ [page:BufferGeometry] 的实例化版本。
</p>
- <h2>Constructor</h2>
+ <h2>构造函数</h2>
<h3>[name]( )</h3>
- <p>
+ <p> 默认构造函数没有参数。
</p>
- <h2>Properties</h2>
- See [page:BufferGeometry] for inherited p... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/InstancedInterleavedBuffer.html | @@ -13,35 +13,35 @@
<h1>[name]</h1>
<p class="desc">
- An instanced version of [page:InterleavedBuffer].
+ [page:InterleavedBuffer] 的实例化版本。
</p>
- <h2>Constructor</h2>
+ <h2>构造函数</h2>
<h3>[name]( [param:TypedArray array], [param:Integer itemSize], [param:Number meshPerAttribute] )</h3>
<p>
</p... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/InterleavedBuffer.html | @@ -11,108 +11,108 @@
<h1>[name]</h1>
<p class="desc">
- "Interleaved" means that multiple attributes, possibly of different types, (e.g., position, normal, uv, color) are packed into a single array buffer.
+ "交叉存储" 表明多个类型的 attributes (例如,顶点位置、法向量、UV 和颜色值)被存储到一个队列中。
<br/><br/>
- An introduction into i... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/InterleavedBufferAttribute.html | @@ -15,89 +15,86 @@ <h1>[name]</h1>
</p>
- <h2>Constructor</h2>
+ <h2>构造函数</h2>
<h3>[name]( [param:InterleavedBuffer interleavedBuffer], [param:Integer itemSize], [param:Integer offset], [param:Boolean normalized] )</h3>
<p>
</p>
- <h2>Properties</h2>
+ <h2>属性</h2>
<h3>[property:InterleavedBu... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/Layers.html | @@ -11,71 +11,71 @@
<h1>[name]</h1>
<p class="desc">
- A [page:Layers] object assigns an [page:Object3D] to 1 or more of 32 layers numbered 0 to 31
- - internally the layers are stored as a [link:https://en.wikipedia.org/wiki/Mask_(computing) bit mask], and by default all
- Object3Ds are a member of layer... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/Object3D.html | @@ -11,427 +11,406 @@
<h1>[name]</h1>
<p class="desc">
- This is the base class for most objects in three.js and provides a set of properties and methods
- for manipulating objects in 3D space.<br /><br />
+ 该类是 three.js 中大多数对象的基类。它提供了一组属性和方法用于在 3D 空间下对对象进行操作。<br /><br />
- Note that this can be used ... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/Raycaster.html | @@ -11,20 +11,19 @@
<h1>[name]</h1>
<p class="desc">
- This class is designed to assist with [link:https://en.wikipedia.org/wiki/Ray_casting raycasting].
- Raycasting is used for mouse picking (working out what objects in the 3d space the mouse is over) amongst
- other things.
+ 该类被设计为 [link:https://en.wik... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/Uniform.html | @@ -10,11 +10,12 @@
<body>
<h1>[name]</h1>
- <p class="desc">Uniforms are global [link:https://www.opengl.org/documentation/glsl/ GLSL] variables. They are passed to shader programs.
+ <p class="desc">Uniforms 是 [link:https://www.opengl.org/documentation/glsl/ GLSL] 着色器中的全局变量。
</p>
- <h3>Example</h3>
+ ... | true |
Other | mrdoob | three.js | 06b2adce1e753ca0366fdae6f36f5960893bcb03.json | commit all core part translation,first commit | docs/api/zh/core/bufferAttributeTypes/BufferAttributeTypes.html | @@ -13,7 +13,7 @@
<h1>BufferAttribute Types</h1>
<p class="desc">
- There are nine types of [page:BufferAttribute] available in three.js. These correspond to the JavaScript
+ 在 three.js 中一共有 9 种 [page:BufferAttribute]。每种和 JavaScript 中的类型相对应。
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Ref... | true |
Other | mrdoob | three.js | 946a65821a3f9401d4915a077d7963e0a6672021.json | fix linter errors | examples/webgl_gpgpu_water.html | @@ -46,6 +46,7 @@
<script src="js/GPUComputationRenderer.js"></script>
+
<!-- This is the 'compute shader' for the water heightmap: -->
<script id="heightmapFragmentShader" type="x-shader/x-fragment">
@@ -54,18 +55,16 @@
uniform vec2 mousePos;
uniform float mouseSize;
uniform float viscosityC... | true |
Other | mrdoob | three.js | 946a65821a3f9401d4915a077d7963e0a6672021.json | fix linter errors | examples/webgl_loader_gltf_extensions.html | @@ -115,9 +115,9 @@
url: './models/gltf/Monster/%s/Monster.gltf',
author: '3drt.com',
authorURL: 'http://www.3drt.com/downloads.htm',
- cameraPos: new THREE.Vector3( 30, 10, 70 ),
- objectScale: new THREE.Vector3( 0.4, 0.4, 0.4 ),
- objectPosition: new THREE.Vector3( 2, 1, 0 ),
+ camer... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_marchingcubes.html | @@ -94,18 +94,16 @@
var camera, scene, renderer;
- var mesh, texture, geometry, materials, material, current_material;
+ var materials, current_material;
var light, pointLight, ambientLight;
- var effect, resolution, numBlobs;
+ var effect, resolution;
var composer, effectFXAA, hblur, vblur;
... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_blending.html | @@ -26,7 +26,7 @@
}
var camera, scene, renderer;
- var mesh, mapBg;
+ var mapBg;
var textureLoader = new THREE.TextureLoader();
@@ -73,7 +73,7 @@
var materialBg = new THREE.MeshBasicMaterial( { map: mapBg } );
var meshBg = new THREE.Mesh( new THREE.PlaneBufferGeometry( 4000, 2000 ), ma... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_blending_custom.html | @@ -183,7 +183,7 @@
materialBg = new THREE.MeshBasicMaterial( { map: mapBg1 } );
var meshBg = new THREE.Mesh( new THREE.PlaneBufferGeometry( 4000, 2000 ), materialBg );
- meshBg.position.set( 0, 0, -1 );
+ meshBg.position.set( 0, 0, - 1 );
scene.add( meshBg );
// FOREGROUND IMAGES
@@ -238,... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_bumpmap.html | @@ -111,7 +111,7 @@
spotLight.shadow.camera.fov = 40;
- spotLight.shadow.bias = -0.005;
+ spotLight.shadow.bias = - 0.005;
//
@@ -126,7 +126,11 @@
} );
loader = new THREE.GLTFLoader();
- loader.load( "models/gltf/LeePerrySmith/LeePerrySmith.glb", function( gltf ) { createScene( gl... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_bumpmap_skin.html | @@ -70,7 +70,7 @@
var camera, scene, renderer;
- var mesh, mesh2;
+ var mesh;
var directionalLight;
@@ -79,15 +79,12 @@
var targetX = 0, targetY = 0;
-
var windowHalfX = window.innerWidth / 2;
var windowHalfY = window.innerHeight / 2;
- var mapColor, mapHeight, mapSpecular;
-
... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_channels.html | @@ -59,7 +59,7 @@
var stats;
- var camera, scene, renderer, controls;
+ var camera, scene, renderer;
var params = {
material: 'normal',
@@ -78,8 +78,6 @@
var mesh, materialStandard, materialDepthBasic, materialDepthRGBA, materialNormal;
- var pointLight, ambientLight;
-
var height =... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_compile.html | @@ -22,7 +22,7 @@
text-align: center;
display:block;
}
-
+
#waitScreen {
color: #000;
position: absolute;
@@ -33,7 +33,7 @@
width: 100px;
height: 100px;
}
-
+
.hide {
display:none;
}
@@ -69,21 +69,24 @@
var frame = new THREE.NodeFrame();
var te... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_cubemap.html | @@ -55,8 +55,6 @@
var camera, scene, renderer;
- var mesh, geometry;
-
var pointLight;
init();
@@ -81,10 +79,10 @@
var path = "textures/cube/SwedishRoyalCastle/";
var format = '.jpg';
var urls = [
- path + 'px' + format, path + 'nx' + format,
- path + 'py' + format, path + '... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_cubemap_balls_reflection.html | @@ -24,9 +24,7 @@
z-index:1000;
}
- a {
- color: #ffffff;
- }
+ a { color: #ffffff; }
#webglmessage a { color:#da0 }
</style>
@@ -51,11 +49,8 @@
var camera, scene, renderer;
- var mesh, lightMesh, geometry;
var spheres = [];
- var directionalLight, pointLight;
-
var mo... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_cubemap_balls_refraction.html | @@ -24,9 +24,7 @@
z-index:1000;
}
- a {
- color: #ffffff;
- }
+ a { color: #ffffff; }
#webglmessage a { color:#da0 }
</style>
@@ -51,11 +49,8 @@
var camera, scene, renderer;
- var mesh, lightMesh, geometry;
var spheres = [];
- var directionalLight, pointLight;
-
var mo... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_cubemap_dynamic.html | @@ -40,6 +40,8 @@
var count = 0, cubeCamera1, cubeCamera2;
+ var onPointerDownPointerX, onPointerDownPointerY, onPointerDownLon, onPointerDownLat;
+
var lon = 0, lat = 0;
var phi = 0, theta = 0;
@@ -102,7 +104,7 @@
}
- function onWindowResized( event ) {
+ function onWindowResized() {
... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_cubemap_refraction.html | @@ -19,8 +19,18 @@
canvas { pointer-events:none; z-index:10; }
- #d { text-align:center; margin:1em auto -9.5em; z-index:200; position:relative; display:block;
- background:rgba(0,0,0,0.5); padding:0.5em; width:400px; border-radius:15px; -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,0.5) }
+ #d {
+ text... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_curvature.html | @@ -23,10 +23,7 @@
padding: 5px;
}
- a {
-
- color: #ffffff;
- }
+ a { color: #ffffff; }
#webglmessage a { color:#da0 }
</style>
@@ -79,12 +76,8 @@
}
- var container;
-
var camera, scene, renderer;
- var controls;
-
var ninjaMeshRaw, curvatureAttribute, bufferGeo;
... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_displacementmap.html | @@ -74,12 +74,6 @@
var pointLight, ambientLight;
- var mouseX = 0;
- var mouseY = 0;
-
- var windowHalfX = window.innerWidth / 2;
- var windowHalfY = window.innerHeight / 2;
-
var height = 500; // of camera frustum
var r = 0.0;
@@ -93,43 +87,43 @@
var gui = new dat.GUI();
//var gui... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_envmaps.html | @@ -43,7 +43,6 @@
var textureEquirec, textureCube, textureSphere;
var cubeMesh, sphereMesh;
var sphereMaterial;
- var refract;
init();
animate();
@@ -141,21 +140,27 @@
var params = {
Cube: function () {
+
cubeMesh.material = cubeMaterial;
cubeMesh.visible = true;
... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_envmaps_hdr.html | @@ -103,12 +103,14 @@
planeMesh1.rotation.x = - Math.PI * 0.5;
scene.add( planeMesh1 );
- var genCubeUrls = function( prefix, postfix ) {
+ var genCubeUrls = function ( prefix, postfix ) {
+
return [
prefix + 'px' + postfix, prefix + 'nx' + postfix,
prefix + 'py' + postfix, prefix ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_lightmap.html | @@ -13,7 +13,6 @@
font-family:georgia;
text-align:center;
}
- h1 { }
a { color:skyblue }
</style>
</head>
@@ -67,8 +66,6 @@
var container, stats;
var camera, scene, renderer;
- var clock = new THREE.Clock();
-
init();
animate();
@@ -97,18 +94,18 @@
var light = new THR... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_matcap.html | @@ -24,7 +24,7 @@
top: 10px;
width: 100%;
text-align: center;
- z-index: 0; // to not conflict with dat.gui
+ z-index: 0; /* to not conflict with dat.gui */
display:block;
}
</style>
@@ -58,9 +58,9 @@
var image;
var API = {
- color : 0xffffff,
- exposure : 1.0
- }
+ ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_modified.html | @@ -14,9 +14,7 @@
overflow:hidden;
}
- a {
- color: #ffffff;
- }
+ a { color: #ffffff; }
#info {
position: absolute;
@@ -59,7 +57,6 @@
}
var camera, scene, renderer, stats;
- var controls;
var materialShader;
@@ -76,8 +73,6 @@
var material = new THREE.MeshNormalMa... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_nodes.html | @@ -1989,7 +1989,7 @@
mtl.position.keywords[ "speed" ] = speed;
// add global keyword ( variable or const )
- THREE.NodeLib.addKeyword( 'myCustomUv', function ( builder ) {
+ THREE.NodeLib.addKeyword( 'myCustomUv', function () {
return new THREE.ReflectNode();
@@ -2022,7 +2022,7 @@... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_normalmap.html | @@ -14,9 +14,7 @@
overflow:hidden;
}
- a {
- color: #ffffff;
- }
+ a { color: #ffffff; }
#info {
position: absolute;
@@ -36,7 +34,6 @@
#vt { display:none }
#vt, #vt a { color:orange; }
- .code { }
</style>
</head>
@@ -120,7 +117,7 @@
scene.add( pointLight );
... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_normalmap_object_space.html | @@ -53,9 +53,7 @@
}
- var mesh, renderer, scene, camera;
-
- var obj;
+ var renderer, scene, camera;
init();
@@ -127,7 +125,7 @@
} );
- window.addEventListener( 'resize', onWindowResize, false );
+ window.addEventListener( 'resize', onWindowResize, false );
}
| true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_parallaxmap.html | @@ -142,12 +142,12 @@
var uniforms = material.uniforms;
- uniforms[ 'parallaxScale' ].value = -1.0 * effectController.scale;
+ uniforms[ 'parallaxScale' ].value = - 1.0 * effectController.scale;
uniforms[ 'parallaxMinLayers' ].value = effectController.minLayers;
uniforms[ 'parallaxMaxLayers' ].... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_reflectivity.html | @@ -69,9 +69,7 @@
exposure: 1.0,
gemColor: 'Green'
};
- var camera, scene, renderer, controls, objects = [];
- var hdrCubeMap;
- var composer;
+ var camera, scene, renderer, objects = [];
var gemBackMaterial, gemFrontMaterial;
var hdrCubeRenderTarget;
@@ -84,7 +82,7 @@
document.body... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_shaders_fresnel.html | @@ -52,11 +52,8 @@
var camera, scene, renderer;
- var mesh, zmesh, lightMesh, geometry;
var spheres = [];
- var directionalLight, pointLight;
-
var mouseX = 0, mouseY = 0;
var windowHalfX = window.innerWidth / 2;
@@ -80,10 +77,10 @@
var path = "textures/cube/Park2/";
var format = '... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_skin.html | @@ -78,7 +78,7 @@
var composer, composerUV1, composerUV2, composerUV3, composerBeckmann;
- var directionalLight, pointLight, ambientLight;
+ var directionalLight;
var mouseX = 0, mouseY = 0;
var targetX = 0, targetY = 0;
@@ -109,12 +109,12 @@
scene.add( directionalLight );
directionalL... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_standard.html | @@ -65,15 +65,9 @@
var statsEnabled = true;
- var container, stats, loader;
+ var container, stats;
- var camera, scene, renderer;
-
- var controls;
-
- var mesh;
-
- var spotLight;
+ var camera, scene, renderer, controls;
init();
animate();
@@ -156,12 +150,14 @@
} );
- va... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_texture_anisotropy.html | @@ -64,7 +64,7 @@
var SCREEN_WIDTH = window.innerWidth;
var SCREEN_HEIGHT = window.innerHeight;
- var container,stats;
+ var container, stats;
var camera, scene1, scene2, renderer;
@@ -136,7 +136,7 @@
} else {
document.getElementById( "val_left" ).innerHTML = "not supported";
- do... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_texture_canvas.html | @@ -106,26 +106,26 @@
var paint = false;
// add canvas event listeners
- drawingCanvas.addEventListener( 'mousedown', function( e ) {
+ drawingCanvas.addEventListener( 'mousedown', function ( e ) {
paint = true;
drawStartPos.set( e.offsetX, e.offsetY );
} );
- drawingCanvas.a... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_texture_filters.html | @@ -77,7 +77,7 @@
var SCREEN_WIDTH = window.innerWidth;
var SCREEN_HEIGHT = window.innerHeight;
- var container,stats;
+ var container, stats;
var camera, scene, scene2, renderer;
@@ -117,7 +117,7 @@
context.fillRect( 0, 0, 128, 128 );
context.fillStyle = "#fff";
- context.fillRect(... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_texture_manualmipmap.html | @@ -131,10 +131,10 @@
textureCanvas1.mipmaps[ 1 ] = mipmap( 64, '#0f0' );
textureCanvas1.mipmaps[ 2 ] = mipmap( 32, '#00f' );
textureCanvas1.mipmaps[ 3 ] = mipmap( 16, '#400' );
- textureCanvas1.mipmaps[ 4 ] = mipmap( 8, '#040' );
- textureCanvas1.mipmaps[ 5 ] = mipmap( 4, '#004' );
- textureC... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_texture_partialupdate.html | @@ -114,8 +114,8 @@
last = elapsedTime;
- position.x = ( 32 * THREE.Math.randInt( 1, 16 ) ) - 32 ;
- position.y = ( 32 * THREE.Math.randInt( 1, 16 ) ) - 32 ;
+ position.x = ( 32 * THREE.Math.randInt( 1, 16 ) ) - 32;
+ position.y = ( 32 * THREE.Math.randInt( 1, 16 ) ) - 32;
// generate ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_translucency.html | @@ -48,7 +48,7 @@
}
var container, stats;
- var camera, scene, renderer, controls;
+ var camera, scene, renderer;
var model;
init();
@@ -76,15 +76,15 @@
pointLight1.add( new THREE.PointLight( 0x888888, 7.0, 300 ) );
scene.add( pointLight1 );
pointLight1.position.x = 0;
- pointLight1.posi... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_variations_basic.html | @@ -126,7 +126,7 @@
height: 1,
curveSegments: 1
- });
+ } );
var textMaterial = new THREE.MeshBasicMaterial( { color: 0xffffff } );
var textMesh = new THREE.Mesh( textGeo, textMaterial );
@@ -135,16 +135,16 @@
}
- addLabel( "+hue", new THREE.Vector3( -350, 0, 0 ) );
+ ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_variations_lambert.html | @@ -126,7 +126,7 @@
height: 1,
curveSegments: 1
- });
+ } );
var textMaterial = new THREE.MeshBasicMaterial( { color: 0xffffff } );
var textMesh = new THREE.Mesh( textGeo, textMaterial );
@@ -135,16 +135,16 @@
}
- addLabel( "+hue", new THREE.Vector3( -350, 0, 0 ) );
+ ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_variations_phong.html | @@ -136,7 +136,7 @@
height: 1,
curveSegments: 1
- });
+ } );
var textMaterial = new THREE.MeshBasicMaterial( { color: 0xffffff } );
var textMesh = new THREE.Mesh( textGeo, textMaterial );
@@ -145,13 +145,13 @@
}
- addLabel( "-shininess", new THREE.Vector3( -350, 0, 0 ) ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_variations_physical.html | @@ -72,12 +72,14 @@
//
- var genCubeUrls = function( prefix, postfix ) {
+ var genCubeUrls = function ( prefix, postfix ) {
+
return [
prefix + 'px' + postfix, prefix + 'nx' + postfix,
prefix + 'py' + postfix, prefix + 'ny' + postfix,
prefix + 'pz' + postfix, prefix + 'nz' + po... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_variations_standard.html | @@ -70,12 +70,14 @@
camera.position.set( 0.0, 400, 400 * 3.5 );
//
- var genCubeUrls = function( prefix, postfix ) {
+ var genCubeUrls = function ( prefix, postfix ) {
+
return [
prefix + 'px' + postfix, prefix + 'nx' + postfix,
prefix + 'py' + postfix, prefix + 'ny' + postfix,
... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_variations_toon.html | @@ -138,7 +138,7 @@
height: 1,
curveSegments: 1
- });
+ } );
var textMaterial = new THREE.MeshBasicMaterial( { color: 0xffffff } );
var textMesh = new THREE.Mesh( textGeo, textMaterial );
@@ -147,13 +147,13 @@
}
- addLabel( "-shininess", new THREE.Vector3( -350, 0, 0 ) ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_video.html | @@ -17,9 +17,7 @@
text-align:center;
}
- a {
- color:#0078ff;
- }
+ a { color:#0078ff; }
#info {
color:#fff;
@@ -130,42 +128,42 @@
cube_count = 0;
for ( i = 0; i < xgrid; i ++ )
- for ( j = 0; j < ygrid; j ++ ) {
+ for ( j = 0; j < ygrid; j ++ ) {
- ox = i;
- ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_video_webcam.html | @@ -104,14 +104,14 @@
var constraints = { video: { width: 1280, height: 720, facingMode: 'user' } };
- navigator.mediaDevices.getUserMedia( constraints ).then( function( stream ) {
+ navigator.mediaDevices.getUserMedia( constraints ).then( function ( stream ) {
- // apply the stream to the vid... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_materials_wireframe.html | @@ -74,7 +74,7 @@
material = new THREE.MeshBasicMaterial( { wireframe: true } );
mesh = new THREE.Mesh( geometry, material );
- mesh.position.x = -150;
+ mesh.position.x = - 150;
scene.add( mesh );
//
@@ -112,7 +112,7 @@
material.extensions.derivatives = true;
mesh = new THREE.... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_mirror.html | @@ -76,8 +76,8 @@
camera = new THREE.PerspectiveCamera( VIEW_ANGLE, ASPECT, NEAR, FAR );
camera.position.set( 0, 75, 160 );
- cameraControls = new THREE.OrbitControls(camera, renderer.domElement);
- cameraControls.target.set( 0, 40, 0);
+ cameraControls = new THREE.OrbitControls( camera, renderer.d... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_mirror_nodes.html | @@ -106,7 +106,6 @@
var groundMirror = new THREE.ReflectorRTT( geometry, { clipBias: 0.003, textureWidth: WIDTH, textureHeight: HEIGHT } );
var mask = new THREE.SwitchNode( new THREE.TextureNode( decalDiffuse ), 'w' );
- var maskFlip = new THREE.Math1Node( mask, THREE.Math1Node.INVERT );
var mirro... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_modifier_subdivision.html | @@ -37,9 +37,9 @@
// Create new object by parameters
- var createSomething = function( klass, args ) {
+ var createSomething = function ( klass, args ) {
- var F = function( klass, args ) {
+ var F = function ( klass, args ) {
return klass.apply( this, args );
@@ -74,19 +74,19 @@
{ ty... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_modifier_tessellation.html | @@ -112,7 +112,7 @@
function init( font ) {
camera = new THREE.PerspectiveCamera( 40, WIDTH / HEIGHT, 1, 10000 );
- camera.position.set( -100, 100, 200 );
+ camera.position.set( - 100, 100, 200 );
controls = new THREE.TrackballControls( camera );
@@ -133,7 +133,7 @@
bevelSize: 1,
bevelEna... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_morphtargets.html | @@ -23,9 +23,7 @@
color: #ffffff;
}
- a {
- color: #ffffff;
- }
+ a { color: #ffffff; }
</style>
</head>
@@ -51,12 +49,10 @@
}
- var container, stats;
+ var container;
var camera, scene, renderer;
- var geometry, objects;
-
var mesh;
init();
@@ -129,14 +125,46 ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_morphtargets_human.html | @@ -170,13 +170,13 @@
morphConfig = {
};
- var morphCallback = function( index ) {
+ var morphCallback = function () {
return function () {
character.updateMorphs( morphConfig );
- }
+ };
};
| true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_morphtargets_sphere.html | @@ -42,12 +42,10 @@
<script>
- var container, stats;
+ var container;
var camera, scene, renderer;
- var geometry, objects;
-
var mesh;
var sign = 1; | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_multiple_canvases_complex.html | @@ -124,9 +124,9 @@
var fullWidth = 550;
var fullHeight = 600;
- views.push( new View( canvas1, fullWidth, fullHeight, 0, 0, canvas1.clientWidth, canvas1.clientHeight ) );
+ views.push( new View( canvas1, fullWidth, fullHeight, 0, 0, canvas1.clientWidth, canvas1.clientHeight ) );
views.push( ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_multiple_canvases_grid.html | @@ -267,7 +267,7 @@
function animate() {
- for ( var i = 0; i < views.length; ++i ) {
+ for ( var i = 0; i < views.length; ++ i ) {
views[ i ].render();
| true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_multiple_elements.html | @@ -111,7 +111,7 @@
var template = document.getElementById( "template" ).text;
var content = document.getElementById( "content" );
- for ( var i = 0; i < 40; i ++ ) {
+ for ( var i = 0; i < 40; i ++ ) {
var scene = new THREE.Scene();
@@ -200,7 +200,7 @@
renderer.setClearColor( 0xe0e0e0... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_multiple_elements_text.html | @@ -44,9 +44,7 @@
text-align: center;
}
- a {
- color: #0080ff;
- }
+ a { color: #0080ff; }
.math {
@@ -131,7 +129,7 @@
views = document.querySelectorAll( '.view' );
- for ( var n = 0 ; n < views.length ; n++ ) {
+ for ( var n = 0; n < views.length; n ++ ) {
var scene ... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_multiple_renderers.html | @@ -49,7 +49,6 @@
var mesh1, mesh2, mesh3;
var color = new THREE.Color();
- var vec = new THREE.Vector3();
init();
animate(); | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_multiple_views.html | @@ -64,10 +64,12 @@
eye: [ 0, 300, 1800 ],
up: [ 0, 1, 0 ],
fov: 30,
- updateCamera: function ( camera, scene, mouseX, mouseY ) {
+ updateCamera: function ( camera, scene, mouseX ) {
+
camera.position.x += mouseX * 0.05;
- camera.position.x = Math.max( Math.min( camera.position.x... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_nearestneighbour.html | @@ -80,10 +80,6 @@
var clock = new THREE.Clock();
- var blocker = document.getElementById( 'blocker' );
- var instructions = document.getElementById( 'instructions' );
-
-
function init() {
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1000000 );
@@ -128,7 +... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_octree.html | @@ -24,7 +24,6 @@
renderer,
octree,
geometry = new THREE.BoxBufferGeometry( 50, 50, 50 ),
- material,
mesh,
meshes = [],
meshesSearch = [],
@@ -157,9 +156,7 @@
}
- }
- // else remove objects from octree
- else {
+ } else { // else remove objects from octree
... | true |
Other | mrdoob | three.js | a5b45d15ed3e18587fac1253aa96113549a22e3a.json | fix linter errors in webgl M to W | examples/webgl_octree_raycasting.html | @@ -32,22 +32,16 @@
var octree;
var objects = [];
- var objectsSearch = [];
var totalFaces = 0;
var simpleMeshCount = 5000;
var radius = 100;
var radiusMax = radius * 10;
var radiusMaxHalf = radiusMax * 0.5;
- var radiusSearch = radius * 0.75;
var baseColor = 0x333333;
- var foundColor ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.