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 | d0665689979805ab3e0e15572f3e5e0d231ceb48.json | change onChange to updateLight | threejs/threejs-lights-point.html | @@ -116,12 +116,14 @@
const helper = new THREE.PointLightHelper(light);
scene.add(helper);
- const onChange = helper.update.bind(helper);
+ function updateLight() {
+ helper.update();
+ }
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('col... | true |
Other | mrdoob | three.js | d0665689979805ab3e0e15572f3e5e0d231ceb48.json | change onChange to updateLight | threejs/threejs-lights-rectarea.html | @@ -133,18 +133,20 @@
const helper = new THREE.RectAreaLightHelper(light);
scene.add(helper);
- const onChange = helper.update.bind(helper);
+ function updateLight() {
+ helper.update();
+ }
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('... | true |
Other | mrdoob | three.js | d0665689979805ab3e0e15572f3e5e0d231ceb48.json | change onChange to updateLight | threejs/threejs-lights-spot-w-helper.html | @@ -131,21 +131,21 @@
const helper = new THREE.SpotLightHelper(light);
scene.add(helper);
- const onChange = () => {
+ function updateLight() {
light.target.updateMatrixWorld();
helper.update();
- };
- onChange();
+ }
+ updateLight();
const gui = new dat.GUI();
gu... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/background.html | @@ -42,9 +42,9 @@
const aspect = 2; // the canvas default
const fov = 35;
- const zNear = 0.1;
- const zFar = 5000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/lessons/resources/frustum-3d.svg | @@ -57,11 +57,11 @@
<path d="M268.458,558.348C288.79,525.842 354.8,502 433,502C511.2,502 577.21,525.842 597.542,558.348C552.951,545.022 495.572,537 433,537C370.428,537 313.049,545.022 268.458,558.348Z" style="stroke:rgb(146,146,146);stroke-width:3.56px;"/>
</g>
</g>
- <g transform="matrix(... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/lessons/resources/threejs-lesson-utils.js | @@ -80,9 +80,9 @@ window.threejsLessonUtils = {
const scene = new THREE.Scene();
let targetFOVDeg = 60;
const aspect = 1;
- const zNear = 0.1;
- const zFar = 50;
- let camera = new THREE.PerspectiveCamera(targetFOVDeg, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 50;
+ let ca... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/lessons/resources/threejs-textures.js | @@ -144,7 +144,7 @@
async create(props) {
const { scene, camera, renderInfo } = props;
scene.background = new THREE.Color('black');
- camera.zFar = 150;
+ camera.far = 150;
const texture = await filterTexturePromise;
const root = new THREE.Object3D();
co... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/lessons/threejs-fog.md | @@ -150,12 +150,12 @@ We can then add it like this
scene.background = new THREE.Color(color);
+
+ const fogGUIHelper = new FogGUIHelper(scene.fog);
-+ gui.add(fogGUIHelper, 'near', zNear, zFar).listen();
-+ gui.add(fogGUIHelper, 'far', zNear, zFar).listen();
++ gui.add(fogGUIHelper, 'near', near, far).listen()... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/lessons/threejs-fundamentals.md | @@ -70,9 +70,9 @@ Next up we need a camera.
```
const fov = 75;
const aspect = 2; // the canvas default
-const zNear = 0.1;
-const zFar = 5;
-const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+const near = 0.1;
+const far = 5;
+const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/lessons/threejs-lights.md | @@ -16,9 +16,9 @@ and we'll move the camera 10 units up and 20 units back from the origin
```javascript
*const fov = 45;
const aspect = 2; // the canvas default
-const zNear = 0.1;
-*const zFar = 100;
-const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+const near = 0.1;
+*const far = 100;
+const... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/lessons/threejs-primitives.md | @@ -95,10 +95,10 @@ objects.
-const fov = 75;
+const fov = 40;
const aspect = 2; // the canvas default
-const zNear = 0.1;
--const zFar = 5;
-+const zFar = 1000;
-const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+const near = 0.1;
+-const far = 5;
++const far = 1000;
+const camera = new THREE.P... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/lessons/threejs-scenegraph.md | @@ -94,7 +94,7 @@ camera. For most situations positive Y being up is good enough but since
we are looking straight down we need to tell the camera that positive Z is up.
```
-const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
c... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-fog-gui.html | @@ -33,9 +33,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-fog.html | @@ -29,9 +29,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-fundamentals-3-cubes.html | @@ -19,9 +19,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-fundamentals-with-animation.html | @@ -19,9 +19,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-fundamentals-with-light.html | @@ -19,9 +19,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-fundamentals.html | @@ -19,9 +19,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-lights-ambient.html | @@ -34,9 +34,9 @@
const fov = 45;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 100;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 100;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-lights-directional-w-helper.html | @@ -34,9 +34,9 @@
const fov = 45;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 100;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 100;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-lights-directional.html | @@ -34,9 +34,9 @@
const fov = 45;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 100;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 100;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-lights-hemisphere.html | @@ -34,9 +34,9 @@
const fov = 45;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 100;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 100;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-lights-point-physically-correct.html | @@ -35,9 +35,9 @@
const fov = 45;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 100;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 100;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-lights-point.html | @@ -34,9 +34,9 @@
const fov = 45;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 100;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 100;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-lights-rectarea.html | @@ -35,9 +35,9 @@
const fov = 45;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 100;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 100;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-lights-spot-w-helper.html | @@ -34,9 +34,9 @@
const fov = 45;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 100;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 100;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-primitives-text.html | @@ -30,9 +30,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-primitives.html | @@ -30,9 +30,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-responsive-hd-dpi.html | @@ -30,9 +30,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-responsive-no-resize.html | @@ -30,9 +30,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-responsive-update-camera.html | @@ -30,9 +30,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-responsive.html | @@ -29,9 +29,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-responsive.js | @@ -6,9 +6,9 @@ function main() {
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-scenegraph-car.html | @@ -31,9 +31,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-scenegraph-sun-earth-moon-axes-grids.html | @@ -59,9 +59,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-scenegraph-sun-earth-moon-axes.html | @@ -29,9 +29,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-scenegraph-sun-earth-moon.html | @@ -29,9 +29,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-scenegraph-sun-earth-orbit-fixed.html | @@ -29,9 +29,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-scenegraph-sun-earth-orbit.html | @@ -29,9 +29,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-scenegraph-sun-earth.html | @@ -29,9 +29,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-scenegraph-sun.html | @@ -29,9 +29,9 @@
const fov = 40;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 1000;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 1000;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
came... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-textured-cube-6-textures.html | @@ -29,9 +29,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-textured-cube-adjust.html | @@ -32,9 +32,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-textured-cube-wait-for-all-textures.html | @@ -54,9 +54,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-textured-cube-wait-for-texture.html | @@ -29,9 +29,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | bc86c8b6d72c8f4b4092d76757fd20ba56fdfffd.json | Switch all references to zNear Zfar to near far | threejs/threejs-textured-cube.html | @@ -29,9 +29,9 @@
const fov = 75;
const aspect = 2; // the canvas default
- const zNear = 0.1;
- const zFar = 5;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const near = 0.1;
+ const far = 5;
+ const camera = new THREE.PerspectiveCamera(fov, aspect, near, far);
camera.pos... | true |
Other | mrdoob | three.js | fbf6a820de0a9a6407d471b6634e336a7845b9a2.json | make camera optional | threejs/lessons/resources/threejs-lesson-utils.js | @@ -82,7 +82,7 @@ window.threejsLessonUtils = {
const aspect = 1;
const zNear = 0.1;
const zFar = 50;
- const camera = new THREE.PerspectiveCamera(targetFOVDeg, aspect, zNear, zFar);
+ let camera = new THREE.PerspectiveCamera(targetFOVDeg, aspect, zNear, zFar);
camera.position.z = 15;
sce... | false |
Other | mrdoob | three.js | 09ad6fbe8a2a47a1bb202d6a33471f89b3ea77fc.json | add getters/setter to prepreqs | threejs/lessons/threejs-prerequisites.md | @@ -202,7 +202,15 @@ somemesh.position.set(...position);
### Use `class`
The syntax for making class like objects pre ES5 was unfamilar to most programmers.
-As of ES5 you can now [use the `class` keyword](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
+As of ES5 you can now [use the `c... | false |
Other | mrdoob | three.js | 6debd2bf63ead442dd874ebfd503096e5de32544.json | require Capitalized constructors | .eslintrc.json | @@ -57,7 +57,7 @@
"curly": [2, "all"],
"no-extra-parens": [2, "functions"],
"eqeqeq": 2,
- "new-cap": 0,
+ "new-cap": 2,
"new-parens": 2,
"semi-spacing": [2, {"before": false, "after": true}],
"space-infix-ops": 2, | true |
Other | mrdoob | three.js | 6debd2bf63ead442dd874ebfd503096e5de32544.json | require Capitalized constructors | threejs/threejs-responsive-editor.html | @@ -57,7 +57,7 @@
// This code is only related to handling the split.
// Our three.js code has not changed
-Split(['#view', '#controls'], {
+Split(['#view', '#controls'], { // eslint-disable-line new-cap
sizes: [75, 25],
minSize: 100,
elementStyle: (dimension, size, gutterSize) => { | true |
Other | mrdoob | three.js | 7a7cd9d05898a0a3a7c0bcc19cce004754153764.json | fix three.js link | threejs/lessons/toc.html | @@ -17,6 +17,6 @@
</ul>
<ul>
<li><a href="https://github.com/greggman/threejsfundamentals">github</a></li>
- <li><a href="https://three.js">three.js</a></li>
+ <li><a href="https://threejs.org">three.js</a></li>
<li><a href="https://threejs.org/docs/">three.js docs</a></li>
</ul> | false |
Other | mrdoob | three.js | 13993331563c01e98e80b17d278c9914e3685c71.json | fix responsive image size | threejs/lessons/resources/lesson.css | @@ -211,10 +211,12 @@ code {
text-align: center;
max-width: 95%;
}
-
+.threejs_center>img {
+ max-width: 100%;
+}
.threejs_image>img {
- max-width: 100% !important;
- display: block;
+ width: 100%;
+ display: block;
}
.threejs_math {
margin-left: auto; | true |
Other | mrdoob | three.js | 13993331563c01e98e80b17d278c9914e3685c71.json | fix responsive image size | threejs/lessons/threejs-textures.md | @@ -34,7 +34,7 @@ in some 3rd party program like Photoshop or gIMP. For example let's
put this image on cube.
<div class="threejs_center">
- <img src="../resources/images/wall.jpg" style="max-width: 600px;" class="border" >
+ <img src="../resources/images/wall.jpg" style="width: 600px;" class="border" >
</div>
... | true |
Other | mrdoob | three.js | 8cda0f9df7c926db813b4ccddf583dd29f88c93a.json | add lighttheme for code | threejs/lessons/resources/lesson.css | @@ -360,6 +360,28 @@ pre.prettyprint, code.prettyprint {
width: calc(100% - 80px);
}
+pre.prettyprint.lighttheme, code.prettyprint.lighttheme {
+ color: #222;
+ background: #fff;
+ border: 1px solid #888;
+ box-shadow: none;
+}
+
+pre.prettyprint.lighttheme .str { color: #183691; } /* string conten... | false |
Other | mrdoob | three.js | 13027d48f18fa43f3e93d60c75661cd598965b5b.json | add code snippets to primitives | threejs/lessons/resources/threejs-primitives.js | @@ -89,33 +89,34 @@
},
},
ParametricBufferGeometry: {
- create() {
- /*
- from: https://github.com/mrdoob/three.js/blob/b8d8a8625465bd634aa68e5846354d69f34d2ff5/examples/js/ParametricGeometries.js
+ /*
+ from: https://github.com/mrdoob/three.js/blob/b8d8a8625465bd634aa68e58... | true |
Other | mrdoob | three.js | 13027d48f18fa43f3e93d60c75661cd598965b5b.json | add code snippets to primitives | threejs/lessons/threejs-primitives.md | @@ -19,7 +19,6 @@ cover making and loading data from several 3D modeling
programs. For now let's go over some of the available
primitives.
-<div class="primitives">
<div data-primitive="BoxBufferGeometry">A Box</div>
<div data-primitive="CircleBufferGeometry">A flat circle</div>
<div data-primitive="ConeBufferGe... | true |
Other | mrdoob | three.js | ca824254777002d51c7bf48f9f6fc2ca9fcd8454.json | fix house scene so no trackback input | threejs/lessons/resources/threejs-fog.js | @@ -46,7 +46,7 @@
scene.add(gltf.scene);
});
- camera.fov = 30;
+ camera.fov = 45;
camera.position.set(0.4, 1, 1.7);
camera.lookAt(1, 1, 0.7);
@@ -62,6 +62,7 @@
const target = [1, 1, 0.7];
return {
+ trackball: false,
obj3D: new THREE.Object3D(),
update: (t... | false |
Other | mrdoob | three.js | 65d6bb7ba09261858930ab4a19781a640739ee32.json | add more options to threejs-lesson-utils | threejs/lessons/resources/threejs-lesson-utils.js | @@ -78,11 +78,11 @@ window.threejsLessonUtils = {
this.init();
const scene = new THREE.Scene();
- const fov = 60;
+ let targetFOVDeg = 60;
const aspect = 1;
const zNear = 0.1;
const zFar = 50;
- const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
+ const camera =... | false |
Other | mrdoob | three.js | b9d095049e6673835b9055e245bb69d9386fd801.json | handle more autolinks
In particular a relative link to "Material" or a link to "Material.property"
will get translated into a link to the docs. | threejs/lessons/resources/lesson.js | @@ -276,6 +276,24 @@ $(document).ready(function($){
return a;
});
+ const methodPropertyRE = /^(\w+).(\w+)$/;
+ const classRE = /^(\w+)$/;
+ $('a').each(function() {
+ const href = this.getAttribute('href');
+ const m = methodPropertyRE.exec(href);
+ if (m) {
+ const codeKeywordLink = codeKey... | false |
Other | mrdoob | three.js | c7c0f9f148edd4fa724c1821dd5ddb5c4fb14d4e.json | fix image borders | build/js/build.js | @@ -158,7 +158,7 @@ Handlebars.registerHelper('image', function(options) {
options.hash.examplePath = options.data.root.examplePath;
options.hash.className = options.hash.className || '';
- options.hash.caption = options.hash.caption || '';
+ options.hash.caption = options.hash.caption || undefined;
if (... | true |
Other | mrdoob | three.js | c7c0f9f148edd4fa724c1821dd5ddb5c4fb14d4e.json | fix image borders | threejs/lessons/resources/lesson.css | @@ -214,6 +214,7 @@ code {
.threejs_image>img {
width: 100%;
+ display: block;
}
.threejs_math {
margin-left: auto; | true |
Other | mrdoob | three.js | c7c0f9f148edd4fa724c1821dd5ddb5c4fb14d4e.json | fix image borders | threejs/lessons/threejs-setup.md | @@ -19,7 +19,7 @@ Next download one of these simple web servers
If you'd prefer a web server with a user interface there's
[Servez](https://greggman.github.io/servez)
-{{{image url="resources/servez.gif" }}}
+{{{image url="resources/servez.gif" className="border" }}}
Just point it at the folder where you unzipp... | true |
Other | mrdoob | three.js | fb92c1e58bd0fb15f5e60a7655ce9f25528583fe.json | add fog, no fog example | threejs/lessons/resources/lesson.css | @@ -53,6 +53,9 @@ div[data-diagram] {
height: 100vh;
z-index: -100;
}
+.border {
+ border: 1px solid black;
+}
.threejs_navbar>div, | true |
Other | mrdoob | three.js | fb92c1e58bd0fb15f5e60a7655ce9f25528583fe.json | add fog, no fog example | threejs/lessons/resources/threejs-fog.js | @@ -13,6 +13,63 @@
return new THREE.Mesh(geometry, material);
}
+ function houseScene(props, fogInHouse) {
+ const {scene, camera} = props;
+ camera.far = 200;
+ const loader = new THREE.GLTFLoader();
+ const settings = {
+ shininess: 0,
+ roughness: 1,
+ metalness: 0,
+ side:... | true |
Other | mrdoob | three.js | fb92c1e58bd0fb15f5e60a7655ce9f25528583fe.json | add fog, no fog example | threejs/lessons/threejs-fog.md | @@ -73,11 +73,11 @@ scene.background = new THREE.Color('#F00'); // red
<div class="spread">
<div>
- <div data-diagram="fogBlueBackgroundRed"></div>
+ <div data-diagram="fogBlueBackgroundRed" class="border"></div>
<div class="code">fog blue, background red</div>
</div>
<div>
- <div data-diagra... | true |
Other | mrdoob | three.js | fb92c1e58bd0fb15f5e60a7655ce9f25528583fe.json | add fog, no fog example | threejs/resources/models/simple_house_scene/scene.gltf | @@ -0,0 +1,1417 @@
+{
+ "asset": {
+ "version": "2.0",
+ "generator": "THREE.GLTFExporter"
+ },
+ "scenes": [
+ {
+ "nodes": [
+ 21
+ ],
+ "name": "Scene"
+ }
+ ],
+ "scene": 0,
+ "nodes": [
+ {
+ "matrix": [
+ 0.9227992126886213,
+ 0.3852811693646405,
+ ... | true |
Other | mrdoob | three.js | 550e4eaeffee1b6dc2025502a18736842f66d2d7.json | add fog article | threejs/lessons/resources/threejs-fog.js | @@ -0,0 +1,55 @@
+'use strict';
+
+/* global threejsLessonUtils */
+
+{
+ function fogExample(scene, fog) {
+ scene.fog = fog;
+ const width = 4;
+ const height = 3;
+ const depth = 10;
+ const geometry = new THREE.BoxBufferGeometry(width, height, depth);
+ const material = new THREE.MeshPhongMateria... | true |
Other | mrdoob | three.js | 550e4eaeffee1b6dc2025502a18736842f66d2d7.json | add fog article | threejs/lessons/threejs-fog.md | @@ -0,0 +1,251 @@
+Title: Three.js Fog
+Description: Fog in Three.js
+
+This article is part of a series of articles about three.js. The
+first article is [three.js fundamentals](threejs-fundamentals.html). If
+you haven't read that yet and you're new to three.js you might want to
+consider starting there. If you haven... | true |
Other | mrdoob | three.js | 550e4eaeffee1b6dc2025502a18736842f66d2d7.json | add fog article | threejs/lessons/toc.html | @@ -6,6 +6,7 @@
<li><a href="/threejs/lessons/threejs-primitives.html">Three.js Primitives</a></li>
<li><a href="/threejs/lessons/threejs-scenegraph.html">Three.js Scenegraph</a></li>
<li><a href="/threejs/lessons/threejs-materials.html">Three.js Materials</a></li>
+ <li><a href="/threejs/lessons/thre... | true |
Other | mrdoob | three.js | 550e4eaeffee1b6dc2025502a18736842f66d2d7.json | add fog article | threejs/threejs-fog-gui.html | @@ -0,0 +1,157 @@
+<!-- Licensed under a BSD license. See license.html for license -->
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
+ <title>Three.js - Fog w/GUI</title>
+ <style>
+ body {
+ ... | true |
Other | mrdoob | three.js | 550e4eaeffee1b6dc2025502a18736842f66d2d7.json | add fog article | threejs/threejs-fog.html | @@ -0,0 +1,115 @@
+<!-- Licensed under a BSD license. See license.html for license -->
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
+ <title>Three.js - Fog</title>
+ <style>
+ body {
+ margin... | true |
Other | mrdoob | three.js | 29dd038c31f03d1d7a51f6a072c571588709e693.json | add materials article | threejs/lessons/resources/threejs-materials.js | @@ -0,0 +1,186 @@
+'use strict';
+
+/* global threejsLessonUtils */
+
+{
+ function smoothOrFlat(flatShading, radius = 7) {
+ const widthDivisions = 12;
+ const heightDivisions = 9;
+ const geometry = new THREE.SphereBufferGeometry(radius, widthDivisions, heightDivisions);
+ const material = new THREE.Mesh... | true |
Other | mrdoob | three.js | 29dd038c31f03d1d7a51f6a072c571588709e693.json | add materials article | threejs/lessons/threejs-materials-and-lights.md | @@ -1,8 +0,0 @@
-Title: Three.js Materials and Lights
-Description: Materials and Lights
-
-This article is part of a series of articles about three.js. The
-first article is [three.js fundamentals](three-fundamentals.html). If
-you haven't read yet you might want to consider starting there.
-
-TBD | true |
Other | mrdoob | three.js | 29dd038c31f03d1d7a51f6a072c571588709e693.json | add materials article | threejs/lessons/threejs-materials.md | @@ -0,0 +1,276 @@
+Title: Three.js Materials
+Description: Materials in Three.js
+
+This article is part of a series of articles about three.js. The
+first article is [three.js fundamentals](three-fundamentals.html). If
+you haven't read that yet and you're new to three.js you might want to
+consider starting there.
+ ... | true |
Other | mrdoob | three.js | 29dd038c31f03d1d7a51f6a072c571588709e693.json | add materials article | threejs/lessons/toc.html | @@ -5,6 +5,7 @@
<li><a href="/threejs/lessons/threejs-responsive.html">Three.js Responsive Design</a></li>
<li><a href="/threejs/lessons/threejs-primitives.html">Three.js Primitives</a></li>
<li><a href="/threejs/lessons/threejs-scenegraph.html">Three.js Scenegraph</a></li>
+ <li><a href="/threejs/les... | true |
Other | mrdoob | three.js | b9c1b91986c63da43a3e0c4e5914dee3ce9d22d2.json | remove placeholder page | index.html | @@ -1,31 +0,0 @@
-<style>
-* {
- box-sizing: border-box;
- -moz-box-sizing: border-box;
-}
-body {
- margin: 0;
- font-family: sans-serif;
- font-weight: bold;
- color: white;
- background-color: blue;
-}
-#page {
- width: 100vw;
- height: 100vh;
- display: flex;
- justify-content: cente... | false |
Other | mrdoob | three.js | cf6b82e0925e2795193a4e001b1cc947d26aea7b.json | add first 4 articles | threejs/lessons/threejs-fundamentals.md | @@ -0,0 +1,316 @@
+Title: Three.js Fundamentals
+Description: Your first Three.js lesson starting with the fundamentals
+
+This is the first article in a series of articles about three.js.
+[Three.js](http://threejs.org) is a 3D library that tries to make
+it as easy as possible to get 3D content on a webpage.
+
+Three... | true |
Other | mrdoob | three.js | cf6b82e0925e2795193a4e001b1cc947d26aea7b.json | add first 4 articles | threejs/lessons/threejs-materials-and-lights.md | @@ -0,0 +1,8 @@
+Title: Three.js Materials and Lights
+Description: Materials and Lights
+
+This article is part of a series of articles about three.js. The
+first article is [three.js fundamentals](three-fundamentals.html). If
+you haven't read yet you might want to consider starting there.
+
+TBD | true |
Other | mrdoob | three.js | cf6b82e0925e2795193a4e001b1cc947d26aea7b.json | add first 4 articles | threejs/lessons/threejs-primitives.md | @@ -0,0 +1,394 @@
+Title: Three.js Primitives
+Description: A tour of three.js primitives.
+
+This article one in a series of articles about three.js.
+The first article was [about fundamentals](threejs-fundamentals.html).
+If you haven't read that yet you might want to start there.
+
+Three.js has a large number of pr... | true |
Other | mrdoob | three.js | cf6b82e0925e2795193a4e001b1cc947d26aea7b.json | add first 4 articles | threejs/lessons/threejs-responsive.md | @@ -0,0 +1,271 @@
+Title: Three.js Responsive Design
+Description: How to make your three.js fit different sized displays.
+
+This is the second article in a series of articles about three.js.
+The first article was [about fundamentals](threejs-fundamentals.html).
+If you haven't read that yet you might want to start t... | true |
Other | mrdoob | three.js | cf6b82e0925e2795193a4e001b1cc947d26aea7b.json | add first 4 articles | threejs/lessons/threejs-scenegraph.md | @@ -0,0 +1,390 @@
+Title: Three.js Scenegraph
+Description: What's a scene graph?
+
+This article is part of a series of articles about three.js. The
+first article is [three.js fundamentals](three-fundamentals.html). If
+you haven't read yet you might want to consider starting there.
+
+Three.js's core is arguably its... | true |
Other | mrdoob | three.js | 80cd2e575f0f2075db4b844721f1bd8a08a176fd.json | remove articles so we can have a PR | threejs/lessons/threejs-fundamentals.md | @@ -1,316 +0,0 @@
-Title: Three.js Fundamentals
-Description: Your first Three.js lesson starting with the fundamentals
-
-This is the first article in a series of articles about three.js.
-[Three.js](http://threejs.org) is a 3D library that tries to make
-it as easy as possible to get 3D content on a webpage.
-
-Three... | true |
Other | mrdoob | three.js | 80cd2e575f0f2075db4b844721f1bd8a08a176fd.json | remove articles so we can have a PR | threejs/lessons/threejs-materials-and-lights.md | @@ -1,8 +0,0 @@
-Title: Three.js Materials and Lights
-Description: Materials and Lights
-
-This article is part of a series of articles about three.js. The
-first article is [three.js fundamentals](three-fundamentals.html). If
-you haven't read yet you might want to consider starting there.
-
-TBD | true |
Other | mrdoob | three.js | 80cd2e575f0f2075db4b844721f1bd8a08a176fd.json | remove articles so we can have a PR | threejs/lessons/threejs-primitives.md | @@ -1,394 +0,0 @@
-Title: Three.js Primitives
-Description: A tour of three.js primitives.
-
-This article one in a series of articles about three.js.
-The first article was [about fundamentals](threejs-fundamentals.html).
-If you haven't read that yet you might want to start there.
-
-Three.js has a large number of pr... | true |
Other | mrdoob | three.js | 80cd2e575f0f2075db4b844721f1bd8a08a176fd.json | remove articles so we can have a PR | threejs/lessons/threejs-responsive.md | @@ -1,271 +0,0 @@
-Title: Three.js Responsive Design
-Description: How to make your three.js fit different sized displays.
-
-This is the second article in a series of articles about three.js.
-The first article was [about fundamentals](threejs-fundamentals.html).
-If you haven't read that yet you might want to start t... | true |
Other | mrdoob | three.js | 80cd2e575f0f2075db4b844721f1bd8a08a176fd.json | remove articles so we can have a PR | threejs/lessons/threejs-scenegraph.md | @@ -1,390 +0,0 @@
-Title: Three.js Scenegraph
-Description: What's a scene graph?
-
-This article is part of a series of articles about three.js. The
-first article is [three.js fundamentals](three-fundamentals.html). If
-you haven't read yet you might want to consider starting there.
-
-Three.js's core is arguably its... | true |
Other | mrdoob | three.js | fd937afcf5de381e9e015faacf0df9a2be12a744.json | fix example link | threejs/lessons/threejs-scenegraph.md | @@ -355,7 +355,7 @@ One thing to notice is we set the `renderOrder` of the `AxesHelper`
to 2 and for the `GridHelper` to 1 so that the axes get drawn after the grid.
Otherwise the grid might overwrite the axes.
-{{{example url="../threejs-scenegraph-sun-earth-moon-axes.html" }}}
+{{{example url="../threejs-scenegra... | false |
Other | mrdoob | three.js | fae0c80fd5b93c8d0b987540c5c7c3dfdd7c3a64.json | move camera out | threejs/threejs-scenegraph-sun-earth.html | @@ -32,7 +32,7 @@
const zNear = 0.1;
const zFar = 1000;
const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
- camera.position.set(0, 50, 0);
+ camera.position.set(0, 150, 0);
camera.up.set(0, 0, 1);
camera.lookAt(0, 0, 0);
| false |
Other | mrdoob | three.js | bc4281e4f3603107f483313689551466b4c7958e.json | remove border from diagrams | build/templates/diagram.template | @@ -1,5 +1,5 @@
<div class="threejs_diagram_container">
- <iframe class="threejs_example {{className}}" style="width: {{width}}px; height: {{height}}px;" src="{{{examplePath}}}{{{url}}}"></iframe>
+ <iframe class="threejs_diagram {{className}}" style="width: {{width}}px; height: {{height}}px;" src="{{{examplePath}}}... | true |
Other | mrdoob | three.js | bc4281e4f3603107f483313689551466b4c7958e.json | remove border from diagrams | threejs/lessons/resources/lesson.css | @@ -228,11 +228,13 @@ iframe {
iframe.body {
height: 100vh;
}
-iframe.threejs_example {
+iframe.threejs_example, iframe.threejs_diagram {
border: none;
margin-left: auto;
margin-right: auto;
display: block;
+}
+iframe.threejs_example {
border: 1px solid black;
}
iframe.noborder { | true |
Other | mrdoob | three.js | 0f7fc620572415797d60e1c7477466eed77b1e65.json | add comment about scrolling console issues | threejs/resources/threejs-lessons-helper.js | @@ -172,6 +172,12 @@
// any random iframe control to bring itself into view against
// the parent's wishes.
//
+ // note that even if we used a solution (which is to manually set
+ // scrollTop) there's a UI issue that if the user manaully scrolls
+ // we want to stop scrolling autom... | false |
Other | mrdoob | three.js | af91ad963f646d6ad63015a09034424b6f2fdd07.json | Remove unnecessary line from CubeCamera (#23908)
* removed unnecessary line from CubeCamera
* fixed linter warnings | src/cameras/CubeCamera.js | @@ -1,4 +1,4 @@
-import { LinearEncoding, NoToneMapping } from '../constants.js';
+import { NoToneMapping } from '../constants.js';
import { Object3D } from '../core/Object3D.js';
import { Vector3 } from '../math/Vector3.js';
import { PerspectiveCamera } from './PerspectiveCamera.js';
@@ -74,7 +74,6 @@ class CubeCam... | false |
Other | mrdoob | three.js | 36706f6ada911c182191374c5c6877c7e4e96d28.json | update compositingAlphaMode (#23827) | examples/jsm/renderers/webgpu/WebGPURenderer.js | @@ -172,7 +172,7 @@ class WebGPURenderer {
context.configure( {
device: device,
format: GPUTextureFormat.BGRA8Unorm, // this is the only valid context format right now (r121)
- compositingAlphaMode: 'opaque'
+ compositingAlphaMode: 'premultiplied'
} );
this._adapter = adapter;
@@ -957,6 +957,7 @@... | false |
Other | mrdoob | three.js | 564d38a4318b4c27f7346cc6cec5fd2ecf24d379.json | Fix typos in custom geometry article | threejs/lessons/threejs-custom-geometry.md | @@ -5,15 +5,15 @@ A [previous article](threejs-primitives.html) gave a tour of
the various built in primitives included in THREE.js. In this
article we'll cover making our own geometry.
-Just to be clear, if you are serious about making 3D content
+Just to be clear, if you are serious about making 3D content,
the ... | false |
Other | mrdoob | three.js | ea3e339568061152db716b14582be519988842c0.json | Fix typos in render targets article | threejs/lessons/threejs-rendertargets.md | @@ -6,7 +6,7 @@ After you render to it you can use that texture like any other texture.
Let's make a simple example. We'll start with an example from [the article on responsiveness](threejs-responsive.html).
-Rendering to a render target just almost exactly the same as normal rendering. First we create a `WebGLRen... | false |
Other | mrdoob | three.js | 8be8bef50b28d98ee558b9f0da75041b6caaa32c.json | Fix typos in fog article | threejs/lessons/threejs-fog.md | @@ -60,10 +60,10 @@ past that distance.
</div>
It's important to note that the fog is applied to *things that are rendered*.
-It is part of the calculation of each pixel of the color of the object.
-What that means is if you want your scene to fade to a certain color you
-need to set the fog **and** the backgroun... | false |
Other | mrdoob | three.js | d69010e1b87a1ec24b50aec3a1ae2b5fac8c0567.json | Fix typos in shadows article | threejs/lessons/threejs-shadows.md | @@ -4,24 +4,24 @@ Description: Shadows in Three.js
This article is part of a series of articles about three.js. The
first article is [three.js fundamentals](threejs-fundamentals.html). If
you haven't read that yet and you're new to three.js you might want to
-consider starting there. The
+consider starting there. T... | false |
Other | mrdoob | three.js | 8b458550e9dd2befe74f5893a389b77a5b8abfc0.json | Fix typos in cameras article | threejs/lessons/threejs-cameras.md | @@ -5,14 +5,14 @@ This article is one in a series of articles about three.js.
The first article was [about fundamentals](threejs-fundamentals.html).
If you haven't read that yet you might want to start there.
-Let's talk about Cameras in three.js. We covered some of this in the [first article](threejs-fundamentals.... | false |
Other | mrdoob | three.js | 37bf8a822f619ba33793ecc09bbaf62d8a7f0c8f.json | Fix typos in lights article | threejs/lessons/threejs-lights.md | @@ -4,10 +4,10 @@ Description: Setting up Lights
This article is part of a series of articles about three.js. The
first article is [three.js fundamentals](threejs-fundamentals.html). If
you haven't read that yet and you're new to three.js you might want to
-consider starting there. The
+consider starting there. The... | false |
Other | mrdoob | three.js | 45a32b784f787facb555062d0d263629b479eec0.json | Fix typos in texture article | threejs/lessons/threejs-textures.md | @@ -1,5 +1,5 @@
Title: Three.js Textures
-Description: Using Textures in three.js
+Description: Using textures in three.js
This article is one in a series of articles about three.js.
The first article was [about three.js fundamentals](threejs-fundamentals.html).
@@ -8,22 +8,22 @@ If you haven't read that yet you m... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.