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 | fbac88d731b85fc9b25c69ce7161edd2566ed40c.json | remove references to XXXBufferGeometry | threejs/lessons/ja/threejs-primitives.md | @@ -25,51 +25,32 @@ Three.jsใฏๅคใใฎใใชใใใฃใใใใใพใใ
ใใฎใใใๅฟ
่ฆใซๅฟใใฆใไธๆใไฝฟใๅใใใใจใใงใใพใใ
-<div id="Diagram-BoxBufferGeometry" data-primitive="BoxBufferGeometry">็ซๆนไฝ</div>
-<div id="Diagram-CircleBufferGeometry" data-primitive="CircleBufferGeometry">2ๆฌกๅ
ใฎๅ</div>
-<div id="Diagram-ConeBufferGeometry" data-primitive="ConeBufferGeome... | true |
Other | mrdoob | three.js | fbac88d731b85fc9b25c69ce7161edd2566ed40c.json | remove references to XXXBufferGeometry | threejs/lessons/kr/threejs-primitives.md | @@ -22,59 +22,32 @@ Three.js์๋ ๋ค์ํ ์์ ๋ชจ๋ธ์ด ์์ต๋๋ค. ๋จผ์ Three.js์ ์
์์ผ๋ก ์๊ฐํ ์์ ๋ชจ๋ธ๋ค์ ๋๋ถ๋ถ ๊ธฐ๋ณธ๊ฐ์ด ์์ผ๋ฏ๋ก ํ์์ ๋ฐ๋ผ
์ธ์๋ฅผ ๋ฃ์ด์ฃผ๋ฉด ๋ฉ๋๋ค.
-<div id="Diagram-BoxBufferGeometry" data-primitive="BoxBufferGeometry">์ก๋ฉด์ฒด(Box)</div>
-<div id="Diagram-CircleBufferGeometry" data-primitive="CircleBufferGeometry">์(flat circle)</div>
-<div id="Diagra... | true |
Other | mrdoob | three.js | fbac88d731b85fc9b25c69ce7161edd2566ed40c.json | remove references to XXXBufferGeometry | threejs/lessons/resources/threejs-primitives.js | @@ -19,7 +19,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
});
const diagrams = {
- BoxBufferGeometry: {
+ BoxGeometry: {
ui: {
width: { type: 'range', min: 1, max: 10, precision: 1, },
height: { type: 'range', min: 1, max: 10, precision: 1, },
@@ -29,30 +29,3... | true |
Other | mrdoob | three.js | fbac88d731b85fc9b25c69ce7161edd2566ed40c.json | remove references to XXXBufferGeometry | threejs/lessons/ru/threejs-primitives.md | @@ -18,59 +18,31 @@ Three.js ะธะผะตะตั ะฑะพะปััะพะต ะบะพะปะธัะตััะฒะพ ะฟัะธะผะธัะธะฒะพะฒ. ะ
ัะพะทะดะฐะฝะธะต ะธ ะทะฐะณััะทะบั ะดะฐะฝะฝัั
ะธะท ะฝะตัะบะพะปัะบะธั
ะฟัะพะณัะฐะผะผ 3D-ะผะพะดะตะปะธัะพะฒะฐะฝะธั.
ะ ัะตะนัะฐั ะดะฐะฒะฐะนัะต ัะฐััะผะพััะธะผ ะฝะตะบะพัะพััะต ะธะท ะดะพัััะฟะฝัั
ะฟัะธะผะธัะธะฒะพะฒ.
-<div id="Diagram-BoxBufferGeometry" data-primitive="BoxBufferGeometry">ะััะผะพัะณะพะปัะฝัะน ะฟะฐัะฐะปะปะตะปะตะฟะธะฟะตะด</div>
-<div id=... | true |
Other | mrdoob | three.js | fbac88d731b85fc9b25c69ce7161edd2566ed40c.json | remove references to XXXBufferGeometry | threejs/lessons/threejs-primitives.md | @@ -24,62 +24,32 @@ primitives.
Many of the primitives below have defaults for some or all of their
parameters so you can use more or less depending on your needs.
-<div id="Diagram-BoxBufferGeometry" data-primitive="BoxBufferGeometry">A Box</div>
-<div id="Diagram-CircleBufferGeometry" data-primitive="CircleBuffer... | true |
Other | mrdoob | three.js | fbac88d731b85fc9b25c69ce7161edd2566ed40c.json | remove references to XXXBufferGeometry | threejs/lessons/zh_cn/threejs-primitives.md | @@ -18,27 +18,27 @@ Three.js ๆๅพๅคๅพๅ
ใๅพๅ
ๅฐฑๆฏไธไบ 3D ็ๅฝข็ถ๏ผๅจ่ฟ่กๆถๆ นๆฎ
ไธ้ข็ๅพๅคๅพๅ
้ฝๆ้ป่ฎค็้จๅๆ่
ๅ
จ้จๅๆฐ๏ผๆไปฅๅฏไปฅๆ นๆฎไฝ ็้่ฆ้ๆฉไฝฟ็จใ
-<div id="Diagram-BoxBufferGeometry" data-primitive="BoxBufferGeometry">็ๅญ</div>
-<div id="Diagram-CircleBufferGeometry" data-primitive="CircleBufferGeometry">ๅนณ้ขๅ</div>
-<div id="Diagram-ConeBufferGeometry" data-primitive=... | true |
Other | mrdoob | three.js | d3187f287817d1eeb05904ef762be9e3848e7a6d.json | translate threejs lights to zh-cn | threejs/lessons/zh_cn/threejs-lights.md | @@ -0,0 +1,488 @@
+Title: Three.js ๅ
็
ง
+Description: ่ฎพ็ฝฎๅ
็
ง
+TOC: ๅ
็
ง
+
+ๆฌๆๆฏๅ
ณไบ three.js ็ณปๅๆ็ซ ็ไธ้จๅใ็ฌฌไธ็ฏๆ็ซ ๆฏ [three.js ๅบ็ก](threejs-fundamentals.html)ใๅฆๆไฝ ่ฟๆฒก็่ฟ่ไธๅฏนthree.js ่ฟไธ็ๆ๏ผ้ฃๅบ่ฏฅไป้ฃ้ๅผๅง๏ผๅนถไธไบ่งฃๅฆไฝ[่ฎพ็ฝฎๅผๅ็ฏๅข](threejs-setup.html)ใไธไธ็ฏๆ็ซ ไป็ปไบ three.js ไธญ็ [็บน็](threejs-textures.html)ใ
+
+ๆฅไธๆฅๆไปฌๅญฆไน ๅฆไฝๅจ three.js ไธญไฝฟ็จๅ็งไธๅ็ฑปๅ็ๅ
็
งใ
+
+ๅจไธไธชๅบๆฌๅบๆฏ็ๅบ็กไธ๏ผๆไปฌ่ฐๆดไธไธ็ธๆบ็... | false |
Other | mrdoob | three.js | aec64e4f48dc806cf4bb21083ff3a60a3b056daf.json | Add userData property (issue #20621) | src/materials/Material.d.ts | @@ -53,6 +53,7 @@ export interface MaterialParameters {
stencilFail?: StencilOp;
stencilZFail?: StencilOp;
stencilZPass?: StencilOp;
+ userData?: any;
}
/** | false |
Other | mrdoob | three.js | 0fd9764f82ffe812768378ad268925992f2dc643.json | Fix improper SnakeCase. | src/math/Matrix3.d.ts | @@ -1,7 +1,7 @@
import { Matrix4 } from './Matrix4';
import { Vector3 } from './Vector3';
-type Matrix3tuple = [
+type Matrix3Tuple = [
number, number, number,
number, number, number,
number, number, number,
@@ -131,7 +131,7 @@ export class Matrix3 implements Matrix {
* @return The created or provided arra... | true |
Other | mrdoob | three.js | 0fd9764f82ffe812768378ad268925992f2dc643.json | Fix improper SnakeCase. | src/math/Matrix4.d.ts | @@ -3,7 +3,7 @@ import { Euler } from './Euler';
import { Quaternion } from './Quaternion';
import { Matrix } from './Matrix3';
-type Matrix4tuple = [
+type Matrix4Tuple = [
number, number, number, number,
number, number, number, number,
number, number, number, number,
@@ -243,7 +243,7 @@ export class Matrix4... | true |
Other | mrdoob | three.js | 0fd9764f82ffe812768378ad268925992f2dc643.json | Fix improper SnakeCase. | src/math/Vector3.d.ts | @@ -9,7 +9,7 @@ import { BufferAttribute } from './../core/BufferAttribute';
import { InterleavedBufferAttribute } from './../core/InterleavedBufferAttribute';
import { Vector } from './Vector2';
-type Vector3tuple = [number, number, number];
+type Vector3Tuple = [number, number, number];
/**
* 3D vector.
@@ -... | true |
Other | mrdoob | three.js | 0fd9764f82ffe812768378ad268925992f2dc643.json | Fix improper SnakeCase. | src/math/Vector4.d.ts | @@ -4,7 +4,7 @@ import { Matrix3 } from './Matrix3';
import { BufferAttribute } from './../core/BufferAttribute';
import { Vector } from './Vector2';
-type Vector4tuple = [number, number, number, number];
+type Vector4Tuple = [number, number, number, number];
/**
* 4D vector.
@@ -213,7 +213,7 @@ export class V... | true |
Other | mrdoob | three.js | 2f5fe01ba4444d11c605d546ed0839f3de0e96af.json | update rounded box uvs | examples/jsm/geometries/RoundedBoxBufferGeometry.js | @@ -28,6 +28,10 @@ class RoundedBoxBufferGeometry extends BoxBufferGeometry {
const uvs = this.attributes.uv.array;
const faceTris = positions.length / 6;
+ const arcLength = 2 * Math.PI * radius / 4;
+ const widthLength = Math.max( width - 2 * radius, 0 );
+ const heightLength = Math.max( height - 2 * radiu... | false |
Other | mrdoob | three.js | 48a6b71bc3212c22bf34267de7d0d5e030e80e28.json | Fix typo in threejs-scenegraph (#137) | threejs/lessons/threejs-scenegraph.md | @@ -226,7 +226,7 @@ objects.push(earthMesh);
Again we added more invisible scene graph nodes. The first, an `Object3D` called `earthOrbit`
and added both the `earthMesh` and the `moonOrbit` to it, also new. We then added the `mooMesh`
-to the `moonRobit`. The new scene graph looks like this.
+to the `moonOrbit`. Th... | false |
Other | mrdoob | three.js | 9bf79c0c65f195cdeddaa4a72e217cf705187999.json | fix moonOrbit diagram/code | threejs/lessons/resources/images/scenegraph-sun-earth-moon.svg | @@ -1 +1 @@
-<svg version="1.1" viewBox="0.0 0.0 960.0 540.0" fill="none" stroke="none" stroke-linecap="square" stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><clipPath id="g33826f1ac4_0_49.0"><path d="m0 0l960.0 0l0 540.0l-960.0 0l0 -540.0z" clip-rule="nonzero"/></... | true |
Other | mrdoob | three.js | 9bf79c0c65f195cdeddaa4a72e217cf705187999.json | fix moonOrbit diagram/code | threejs/lessons/threejs-scenegraph.md | @@ -224,9 +224,9 @@ objects.push(earthMesh);
+objects.push(moonMesh);
```
-Again we added another invisible scene graph node, an `Object3D` called `earthOrbit`
-and added both the `earthMesh` and the `moonMesh` to it. The new scene graph looks like
-this.
+Again we added more invisible scene graph nodes. The first,... | true |
Other | mrdoob | three.js | 9bf79c0c65f195cdeddaa4a72e217cf705187999.json | fix moonOrbit diagram/code | threejs/threejs-scenegraph-sun-earth-moon-axes-grids.html | @@ -150,6 +150,7 @@
makeAxisGrid(sunMesh, 'sunMesh');
makeAxisGrid(earthOrbit, 'earthOrbit');
makeAxisGrid(earthMesh, 'earthMesh');
+ makeAxisGrid(moonOrbit, 'moonOrbit');
makeAxisGrid(moonMesh, 'moonMesh');
function resizeRendererToDisplaySize(renderer) { | true |
Other | mrdoob | three.js | db4b9fe0938e533c2793f31234221664f4d97708.json | translate ja of texture | threejs/lessons/ja/threejs-textures.md | @@ -0,0 +1,607 @@
+Title: Three.jsใฎใใฏในใใฃ
+Description: Three.jsใฎใใฏในใใฃใฎไฝฟใๆน
+TOC: ใใฏในใใฃ
+
+ใใฎ่จไบใฏthree.jsใซใคใใฆใฎใทใชใผใบ่จไบใฎไธใคใงใใ
+ๆๅใฎ่จไบใฏ[Three.jsใฎๅบ็ค็ฅ่ญ](threejs-fundamentals.html)ใงใใ
+ใพใ ่ชญใใงใชใไบบใฏใใใกใใใๅ
ใซ่ชญใใงใฟใใจใใใใใใใพใใใ
+
+ใใฏในใใฃใฏThree.jsใฎๅคงใใชใใใใฏใฎไธใคใงใใ
+ใฉใฎใฌใใซใง่ชฌๆใใใจใใใ100%ๆฟ็ฅใใฆใฏใใพใใใใใใฃใฆใฟใใใจๆใใพใใ
+Three.jsใซใฏใใใใใฎใใใใฏใใใใไบใใซ้ขไฟใใฆใใใฎใงใ... | false |
Other | mrdoob | three.js | 20cf0fb9fabf5fe8fbe57929452303d79106d235.json | fix blank png in firefox issue | threejs/threejs-postprocessing-adobe-lut-to-png-converter.html | @@ -234,6 +234,7 @@ <h1>Adobe LUT to PNG converter</h1>
}());
document.querySelector('button').addEventListener('click', () => {
+ render();
renderer.domElement.toBlob((blob) => {
saveData(blob, `${name}-s${renderer.domElement.height}.png`);
}); | false |
Other | mrdoob | three.js | 339ae6a38ce912d4b7ad807dddccc838ddc82a62.json | add csp support to lut-reader | threejs/lessons/kr/threejs-post-processing-3dlut.md | @@ -441,10 +441,16 @@ import * as dragAndDrop from './resources/drag-and-drop.js';
dragAndDrop.setup({ msg: 'Drop LUT File here' });
dragAndDrop.onDropFile(readLUTFile);
+function ext(s) {
+ const period = s.lastIndexOf('.');
+ return s.substr(period + 1);
+}
+
function readLUTFile(file) {
const reader = new ... | true |
Other | mrdoob | three.js | 339ae6a38ce912d4b7ad807dddccc838ddc82a62.json | add csp support to lut-reader | threejs/lessons/threejs-post-processing-3dlut.md | @@ -433,10 +433,16 @@ Then we can use them like this
dragAndDrop.setup({msg: 'Drop LUT File here'});
dragAndDrop.onDropFile(readLUTFile);
+function ext(s) {
+ const period = s.lastIndexOf('.');
+ return s.substr(period + 1);
+}
+
function readLUTFile(file) {
const reader = new FileReader();
reader.onload =... | true |
Other | mrdoob | three.js | 339ae6a38ce912d4b7ad807dddccc838ddc82a62.json | add csp support to lut-reader | threejs/resources/lut-reader.js | @@ -43,7 +43,83 @@ function splitOnSpaceHandleQuotesWithEscapes(str, splits = ' \t\n\r') {
return strings;
}
-export function parse(str) {
+const startWhitespaceRE = /^\s/;
+const intRE = /^\d+$/;
+const isNum = s => intRE.test(s);
+
+const quotesRE = /^".*"$/;
+function trimQuotes(s) {
+ return quotesRE.test(s)... | true |
Other | mrdoob | three.js | 339ae6a38ce912d4b7ad807dddccc838ddc82a62.json | add csp support to lut-reader | threejs/threejs-postprocessing-3dlut-w-loader.html | @@ -391,10 +391,16 @@
dragAndDrop.setup({msg: 'Drop LUT File here'});
dragAndDrop.onDropFile(readLUTFile);
+ function ext(s) {
+ const period = s.lastIndexOf('.');
+ return s.substr(period + 1);
+ }
+
function readLUTFile(file) {
const reader = new FileReader();
reader.onload = (e) => {
- ... | true |
Other | mrdoob | three.js | 339ae6a38ce912d4b7ad807dddccc838ddc82a62.json | add csp support to lut-reader | threejs/threejs-postprocessing-adobe-lut-to-png-converter.html | @@ -194,10 +194,16 @@ <h1>Adobe LUT to PNG converter</h1>
dragAndDrop.setup({msg: 'Drop LUT File here'});
dragAndDrop.onDropFile(readLUTFile);
+ function ext(s) {
+ const period = s.lastIndexOf('.');
+ return s.substr(period + 1);
+ }
+
function readLUTFile(file) {
const reader = new FileReader(... | true |
Other | mrdoob | three.js | b0778d0ce5bc2bba07c42918a50cb7680abf0f40.json | translate ja of scenegraph | threejs/lessons/ja/threejs-scenegraph.md | @@ -0,0 +1,487 @@
+Title: Three.jsใฎใทใผใณใฐใฉใ
+Description: ใทใผใณใฐใฉใใจใฏใชใซใ๏ผ
+TOC: ใทใผใณใฐใฉใ
+
+ใใฎ่จไบใฏthree.jsใซใคใใฆใฎใทใชใผใบ่จไบใฎไธใคใงใใ
+ๆๅใฎ่จไบใฏ[Three.jsใฎๅบ็ค](threejs-fundamentals.html)ใงใใ
+ใพใ ่ชญใใงใชใไบบใฏใใใกใใใๅ
ใซ่ชญใใงใฟใใจใใใใใใใพใใใ
+
+Three.jsใฎๆ ธๅฟใฏ้้ใใชใใทใผใณใฐใฉใใงใใ
+3Dใจใณใธใณใฎใทใผใณใฐใฉใใฏใๅใใผใใใญใผใซใซใช็ฉบ้ใ่กจ็พใใฆใใใใฐใฉใๅ
ใฎใใผใใฎ้ๅฑคใงใใ
+
+<img src="resources/images/scenegr... | false |
Other | mrdoob | three.js | b4910892bfa32c0fdc25d72d1336d8b34aec8fe1.json | fix voxel diagram | threejs/lessons/resources/threejs-voxel-geometry.js | @@ -10,7 +10,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
wire: '#DDD',
};
const lightColors = {
- wore: '#000',
+ wire: '#000',
};
const colors = isDarkMode ? darkColors : lightColors;
| false |
Other | mrdoob | three.js | 03d33279e4d3cde6273be59c5f6693346ebfab42.json | remove superfluous slashes | build/templates/index.template | @@ -37,14 +37,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
-<meta name="description" content="Three.js tutorials and solutions" />
-<meta name="keywords" content="webgl grap... | true |
Other | mrdoob | three.js | 03d33279e4d3cde6273be59c5f6693346ebfab42.json | remove superfluous slashes | build/templates/lesson.template | @@ -37,24 +37,24 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
-<meta name="description" content="{{description}}" />
-<meta name="keywords" content="webgl graphics three.js" />... | true |
Other | mrdoob | three.js | cdb5482850b4dc7dcbfffc3c541a046959d566bd.json | fix example threejs-prerequisites.md | threejs/lessons/threejs-prerequisites.md | @@ -165,14 +165,14 @@ Destructuring works with arrays too. Assume an array `const position = [1, 2, 3,
old code
```js
-const x = position[2];
-const y = position[1];
+const x = position[2]; // 3
+const y = position[1]; // 2
```
new code
```js
-const [x, y] = position;
+const [, y, x] = position; // x = 3, y ... | false |
Other | mrdoob | three.js | a9a96cfb8af23788ac97d77176ca1842daf2e865.json | add translation kr/threejs-tips.md | threejs/lessons/kr/threejs-tips.md | @@ -0,0 +1,361 @@
+Title: Three.js ํ
+Description: Three.js๋ฅผ ์ธ ๋ ํ์ํ ์๋ ์๋ ๊ฒ๋ค
+TOC: #
+
+์ด ๊ธ์ Three.js์ ํ์ ๊ดํ ๊ธ๋ค ์ค ๋๋ฌด ์งง์ ๋ณ๋์ ๊ธ๋ก ๋ถ๋ฆฌํ๊ธฐ ์ ๋งคํ ๊ธ๋ค์ ๋ฌถ์ ๊ฒ์
๋๋ค.
+
+---
+
+<a id="screenshot" data-toc="์คํฌ๋ฆฐ์ท ์ฐ๊ธฐ"></a>
+
+# ์บ๋ฒ์ค์ ์คํฌ๋ฆฐ์ท ์ฐ๊ธฐ
+
+๋ธ๋ผ์ฐ์ ์์ ์คํฌ๋ฆฐ์ท์ ์ฐ์ ์ ์๋ ๋ฐฉ๋ฒ์ 2๊ฐ์ง ์ ๋๊ฐ ์์ต๋๋ค. ์์ ๋ถํฐ ์ฌ์ฉํ๋ [`canvas.toDataURL`](https://developer.mozilla.... | false |
Other | mrdoob | three.js | 7d378eeaa05faf9242027a6037af43ad8b89c920.json | add translation kr/threejs-debugging-glsl | threejs/lessons/kr/threejs-debugging-glsl.md | @@ -0,0 +1,64 @@
+Title: Three.js GLSL ๋๋ฒ๊น
+Description: GLSL ์์ด๋ ๋๋ฒ๊น
์ ๋ํด ์์๋ด
๋๋ค
+TOC: GLSL ๋๋ฒ๊น
+
+์ด ์ฌ์ดํธ์์ ์๋ฐ์คํฌ๋ฆฝํธ ์์ฒด์ ๋ํด ๋ค๋ฃจ์ง ์๋ฏ, ์์ง๊น์ง ์ด ์ฌ์ดํธ์๋ GLSL์ ๋ํ ๊ธ์ด ์์ต๋๋ค. GLSL์ ๊ฐ๋จํ ๋ค๋ฃจ๊ธฐ ์ด๋ ค์ด ์ฃผ์ ์ด๊ธฐ์ GLSL์ ๋ฐฐ์ฐ๊ณ ์ถ๋ค๋ฉด [์ด ์๋ฆฌ์ฆ](https://webglfundamentals.org/webgl/lessons/ko/)๋ฅผ ์ฐธ๊ณ ํ๊ธฐ ๋ฐ๋๋๋ค.
+
+GLSL์ ๋ํด ์ด๋ ์ ๋ ์๋ค๋ฉด ์ด ๊ธ์ด GLSL ๋๋ฒ๊น
์ ๋์์ด ๋ ๊ฒ๋๋ค.
+
+GLS... | false |
Other | mrdoob | three.js | dc8aa5fc60a999eeb29118735d4e899850e82fc3.json | add translation kr/threejs-debugging-javascript.md | threejs/lessons/kr/threejs-debugging-javascript.md | @@ -0,0 +1,447 @@
+Title: Three.js ์๋ฐ์คํฌ๋ฆฝํธ ๋๋ฒ๊น
+Description: Three.js์์ ์๋ฐ์คํฌ๋ฆฝํธ ๋๋ฒ๊น
ํ๋ ๋ฒ์ ์์๋ด
๋๋ค
+TOC: ์๋ฐ์คํฌ๋ฆฝํธ ๋๋ฒ๊น
+
+์ด ๊ธ์ Three.js์ ํ์ ๋ ๊ธ์ด ์๋๋๋ค. ๋ณด๋ค๋ ์๋ฐ์คํฌ๋ฆฝํธ๋ฅผ ๋๋ฒ๊น
ํ๋ ์ผ๋ฐ์ ์ธ ๋ฐฉ๋ฒ์ด๋ผ๊ณ ํ๋ ํธ์ด ์ ๋นํ์ฃ . Three.js๋ฅผ ๋ฐฐ์ฐ๋ ค๋ ๋ถ๋ค ์ค์๋ ์๋ฐ์คํฌ๋ฆฝํธ๋ ์ฒ์ ์ ํ๋ ๋ถ๋ค์ด ๋๋ฌ ์๋๋ฐ, ์ด ๊ธ์ด ๊ทธ๋ฐ ๋ถ๋ค์๊ฒ ๋์์ด ๋์์ผ๋ฉด ์ข๊ฒ ๋ค์.
+
+๋๋ฒ๊น
์ ๋ฐฉ๋ํ ์ฃผ์ ๋ผ ์ฌ๊ธฐ์ ๋ชจ๋ ๋ถ๋ถ์ ๋ค๋ฃจ๊ธฐ๋ ์ด๋ ต์ต๋๋ค. ์ด ๊ธ์์๋ ์๋ฐ์คํฌ๋ฆฝํธ ์
๋ฌธ์์ ๊ฒฝ์ฐ๋ฅผ... | false |
Other | mrdoob | three.js | 7be4e4279a6f2cf549bc7eaba9b346cdc6b4a223.json | add translation kr/threejs-material-table.md | threejs/lessons/kr/threejs-material-table.md | @@ -0,0 +1,12 @@
+Title: ์ฌ์ง(Material) ์์ฑํ
+Description: Three.js์ ๊ฐ ์ฌ์ง์ด ์ง์ํ๋ ์์ฑ์ ๋ํ ํ์
๋๋ค
+TOC: ์ฌ์ง(Material) ์์ฑํ
+
+Three.js์์ ์ฃผ๋ก ์ฐ๋ ์ฌ์ง(material)์ Mesh ์ฌ์ง์
๋๋ค. ์๋๋ ๊ฐ ์ฌ์ง์ด ์ง์ํ๋ ์์ฑ์ ํ๋ก ๋ํ๋ธ ๊ฒ์
๋๋ค.
+
+<div>
+<div id="material-table" class="threejs_center"></div>
+<script type="module" src="../resources/threejs-material-table.j... | false |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | Gruntfile.js | @@ -166,9 +166,7 @@ module.exports = function(grunt) {
});
});
const buildStuff = require('@gfxfundamentals/lesson-builder');
- const settings = Object.assign({}, buildSettings, {
- filenames,
- });
+ const settings = {...buildSettings, filenames};
const finish = this.async();
b... | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/lessons/kr/threejs-optimize-lots-of-objects-animated.md | @@ -80,11 +80,7 @@ function makeDiffFile(baseFile, otherFile, compareFn) {
return value;
});
// baseFile์ ๋ณต์ฌํ ๋ค min, max, data๋ฅผ ์ ๊ฐ์ผ๋ก ๊ต์ฒดํฉ๋๋ค.
- return Object.assign({}, baseFile, {
- min,
- max,
- data,
- });
+ return {...baseFile, min, max, data};
}
```
| true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/lessons/kr/threejs-post-processing-3dlut.md | @@ -148,7 +148,7 @@ const lutShader = {
};
const lutNearestShader = {
- uniforms: Object.assign( {}, lutShader.uniforms ),
+ uniforms: {...lutShader.uniforms},
vertexShader: lutShader.vertexShader,
fragmentShader: lutShader.fragmentShader.replace('#define FILTER_LUT', '//'),
}; | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/lessons/resources/threejs-materials.js | @@ -32,9 +32,10 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
function basicLambertPhongExample(MaterialCtor, lowPoly, params = {}) {
const geometry = lowPoly ? lowPolySphereGeometry : highPolySphereGeometry;
- const material = new MaterialCtor(Object.assign({
+ const material = new M... | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/lessons/resources/threejs-primitives.js | @@ -785,7 +785,7 @@ const geometry = new THREE.WireframeGeometry(
addElem(base, 'pre', 'prettyprint showmods', trimmedLines.join('\n'));
- createLiveImage(elem, Object.assign({}, info, {create: createFn}), name);
+ createLiveImage(elem, {...info, create: createFn}, name);
}
makeExample(... | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/lessons/ru/threejs-optimize-lots-of-objects-animated.md | @@ -97,11 +97,7 @@ function makeDiffFile(baseFile, otherFile, compareFn) {
});
// make a copy of baseFile and replace min, max, and data
// with the new data
- return Object.assign({}, baseFile, {
- min,
- max,
- data,
- });
+ return {...baseFile, min, max, data};
}
```
| true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/lessons/threejs-optimize-lots-of-objects-animated.md | @@ -101,11 +101,7 @@ function makeDiffFile(baseFile, otherFile, compareFn) {
});
// make a copy of baseFile and replace min, max, and data
// with the new data
- return Object.assign({}, baseFile, {
- min,
- max,
- data,
- });
+ return {...baseFile, min, max, data};
}
```
| true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/lessons/threejs-post-processing-3dlut.md | @@ -147,7 +147,7 @@ const lutShader = {
};
const lutNearestShader = {
- uniforms: Object.assign( {}, lutShader.uniforms ),
+ uniforms: {...lutShader.uniforms},
vertexShader: lutShader.vertexShader,
fragmentShader: lutShader.fragmentShader.replace('#define FILTER_LUT', '//'),
}; | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/resources/lessons-helper.js | @@ -545,9 +545,10 @@
setupLesson(this);
}
const args = [].slice.apply(arguments);
- args[1] = Object.assign({
+ args[1] = {
powerPreference: 'low-power',
- }, args[1]);
+ ...args[1],
+ };
const ctx = oldFn.apply(this, args);
... | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/resources/lessons-worker-helper.js | @@ -119,9 +119,10 @@
setupLesson(this);
}
const args = [].slice.apply(arguments);
- args[1] = Object.assign({
+ args[1] = {
powerPreference: 'low-power',
- }, args[1]);
+ ...args[1],
+ };
return oldFn.apply(this, args);
};
... | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/resources/lut-reader.js | @@ -121,7 +121,7 @@ function lut1Dto3D(lut) {
for (let i = 0; i < lut.size * lut.size; ++i) {
data.push(...src);
}
- return Object.assign({}, lut, {data});
+ return {...lut, data};
}
export function lutTo2D3Drgb8(lut) {
@@ -140,5 +140,5 @@ export function lutTo2D3Drgb8(lut) {
data[i + 1] = (src[i ... | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/resources/webgl-debug-helper.js | @@ -517,7 +517,7 @@
ext = wrapped.apply(ctx, arguments);
if (ext) {
const origExt = ext;
- ext = makeDebugContext(ext, Object.assign({}, options, {errCtx: ctx}));
+ ext = makeDebugContext(ext, {...options, errCtx: ctx});
sharedState.wrappers[extensio... | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/threejs-lots-of-objects-animated.html | @@ -264,11 +264,7 @@
});
// make a copy of baseFile and replace min, max, and data
// with the new data
- return Object.assign({}, baseFile, {
- min,
- max,
- data,
- });
+ return {...baseFile, min, max, data};
}
// generate a new set of data | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/threejs-lots-of-objects-morphtargets-w-colors.html | @@ -265,11 +265,7 @@
});
// make a copy of baseFile and replace min, max, and data
// with the new data
- return Object.assign({}, baseFile, {
- min,
- max,
- data,
- });
+ return {...baseFile, min, max, data};
}
// generate a new set of data | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/threejs-lots-of-objects-morphtargets.html | @@ -265,11 +265,7 @@
});
// make a copy of baseFile and replace min, max, and data
// with the new data
- return Object.assign({}, baseFile, {
- min,
- max,
- data,
- });
+ return {...baseFile, min, max, data};
}
// generate a new set of data | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/threejs-lots-of-objects-multiple-data-sets.html | @@ -229,11 +229,7 @@
});
// make a copy of baseFile and replace min, max, and data
// with the new data
- return Object.assign({}, baseFile, {
- min,
- max,
- data,
- });
+ return {...baseFile, min, max, data};
}
// generate a new set of data | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/threejs-postprocessing-3dlut-identity.html | @@ -223,7 +223,7 @@
};
const lutNearestShader = {
- uniforms: Object.assign( {}, lutShader.uniforms ),
+ uniforms: {...lutShader.uniforms},
vertexShader: lutShader.vertexShader,
fragmentShader: lutShader.fragmentShader.replace('#define FILTER_LUT', '//'),
}; | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/threejs-postprocessing-3dlut-w-loader.html | @@ -311,7 +311,7 @@
};
const lutNearestShader = {
- uniforms: Object.assign( {}, lutShader.uniforms ),
+ uniforms: {...lutShader.uniforms},
vertexShader: lutShader.vertexShader,
fragmentShader: lutShader.fragmentShader.replace('#define FILTER_LUT', '//'),
}; | true |
Other | mrdoob | three.js | d93f63f821a3f0d4b00d52262e582654f43c9162.json | prefer object spread | threejs/threejs-postprocessing-3dlut.html | @@ -294,7 +294,7 @@
};
const lutNearestShader = {
- uniforms: Object.assign( {}, lutShader.uniforms ),
+ uniforms: {...lutShader.uniforms},
vertexShader: lutShader.vertexShader,
fragmentShader: lutShader.fragmentShader.replace('#define FILTER_LUT', '//'),
}; | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/fr/threejs-primitives.md | @@ -406,5 +406,5 @@ ou votre [BufferGeometry](threejs-custom-buffergeometry.html).
Voyons maintenant l'article traitant sur [comment fonctionne un graphe de scรจne three.js et comment l'utiliser](threejs-scenegraph.html).
-<link rel="stylesheet" href="../resources/threejs-primitives.css">
-<script type="module" src... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ja/threejs-primitives.md | @@ -352,6 +352,6 @@ const material = new THREE.PointsMaterial({
ๆฌกใฏใ[threeใฎใทใผใณใฐใฉใใฎๅใๆนใจไฝฟใๆน](threejs-scenegraph.html)ใ่ชฌๆใใพใใ
-<link rel="stylesheet" href="../resources/threejs-primitives.css">
-<script type="module" src="../resources/threejs-primitives.js"></script>
+<link rel="stylesheet" href="resources/threejs-pri... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-align-html-elements-to-3d.md | @@ -702,5 +702,5 @@ function updateLabels() {
๋ค์ ๊ธ์์๋ ๋ ๋์๊ฐ [์ง๊ตฌ๋ณธ ์์ ๋๋ผ๋ฅผ ์ ํํ๊ณ ๊ฐ์กฐ](threejs-indexed-textures.html)ํด๋ณด๊ฒ ์ต๋๋ค.
-<link rel="stylesheet" href="../resources/threejs-align-html-elements-to-3d.css">
-<script type="module" src="../resources/threejs-align-html-elements-to-3d.js"></script>
+<link rel="stylesheet" ... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-cameras.md | @@ -581,4 +581,4 @@ function render(time) {
๋ํด ๋จผ์ ์ดํด๋ณด๊ฒ ์ต๋๋ค.
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-cameras.js"></script>
\ No newline at end of file
+<script type="module" src="resources/threejs-cameras.js"></script>
\ No newline at end of file | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-custom-buffergeometry.md | @@ -446,4 +446,4 @@ positionAttribute.needsUpdate = true;
๋ฐ ๋์์ด ๋์์ผ๋ฉด ์ข๊ฒ ๋ค์.
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-custom-buffergeometry.js"></script>
+<script type="module" src="resources/threejs-custom-buffergeometry.js"></script> | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-fog.md | @@ -261,4 +261,4 @@ class FogGUIHelper {
</div>
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-fog.js"></script>
+<script type="module" src="resources/threejs-fog.js"></script> | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-lights.md | @@ -552,4 +552,4 @@ gui.add(light, 'power', 0, 2000);
๋ค์ ์ฅ์์๋ [์นด๋ฉ๋ผ ์กฐ์๋ฒ](threejs-cameras.html)์ ๋ํด ์์๋ณด๊ฒ ์ต๋๋ค.
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-lights.js"></script>
+<script type="module" src="resources/threejs-lights.js"></script> | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-materials.md | @@ -319,4 +319,4 @@ Three.js๋ ๊ธฐ๋ณธ์ ์ผ๋ก ์ฒ์ ํ ๋ฒ๋ง ์ฌ์ง์ ์ค์ ์ ์ ์ฉํฉ๋
</div>
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-materials.js"></script>
\ No newline at end of file
+<script type="module" src="resources/threejs-materials.js"></script>
\ No newline at end of file | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-optimize-lots-of-objects.md | @@ -464,4 +464,4 @@ geometry๋ฅผ ํฉ์น๋ ๊ฑด ๊ฝค ์์ฃผ ์ฌ์ฉํ๋ ์ต์ ํ ๊ธฐ๋ฒ์
๋๋ค. ์
ํ์ง๋ง ์์๋ฅผ ํ๋์ mesh๋ก ํฉ์ณ๋ฒ๋ฆฌ๋ฉด ๋ณ๋์ ์์์๋ ํน์ ๋ถ๋ถ์ ์กฐ์ํ๊ธฐ๊ฐ ์ด๋ ต์ต๋๋ค. ์ํฉ์ ๋ฐ๋ผ ์ข์ ๋ฐฉ๋ฒ๋ ๋ค ๋ค๋ฅผ ํ
์ฃ . [๋ค์ ๊ธ](threejs-optimize-lots-of-objects-animated.html)์์๋ ๊ทธ ๋ฐฉ๋ฒ ์ค ํ๋๋ฅผ ์ดํด๋ณด๊ฒ ์ต๋๋ค.
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-lots-of-objects.js"></script>... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-post-processing-3dlut.md | @@ -499,4 +499,4 @@ updateGUI();
์ด ๊ธ์์๋ ์์ด๋๊ฐ ์ด๋ป๊ฒ ์๋ํ๋์ง์ ๋ํด์๋ ์์ ์ค๋ช
ํ์ง ์์์ต๋๋ค. ๋์ค์ GLSL์ ๋ํด ๋ ๋ค๋ฃฐ ๊ธฐํ๊ฐ ์์์ผ๋ฉด ์ข๊ฒ ๋ค์. ์์ด๋์ ์๋ ๋ฐฉ์์ ์๊ณ ์ถ๋ค๋ฉด [ํ์ฒ๋ฆฌ์ ๊ดํ ๊ธ](threejs-post-processing.html)์ ์๋ ๋งํฌ ๋๋ [์ด ์ ํ๋ธ ์์](https://www.youtube.com/watch?v=rfQ8rKGTVlg#t=24m30s)์ ์ฐธ๊ณ ํ๊ธฐ ๋ฐ๋๋๋ค.
-<script type="module" src="../resources/threejs-post-proc... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-primitives.md | @@ -366,6 +366,6 @@ const material = new THREE.PointsMaterial({
๋ค์ ์ฅ์์๋ [์ฌ ๊ทธ๋ํ์ ๊ทธ ์ฌ์ฉ๋ฒ](threejs-scenegraph.html)์ ๋ํด
์์๋ณด๊ฒ ์ต๋๋ค.
-<link rel="stylesheet" href="../resources/threejs-primitives.css">
-<script type="module" src="../resources/threejs-primitives.js"></script>
+<link rel="stylesheet" href="resources/threejs-p... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-textures.md | @@ -613,5 +613,5 @@ metalness
roughness
-->
-<link rel="stylesheet" href="../resources/threejs-textures.css">
-<script type="module" src="../resources/threejs-textures.js"></script>
\ No newline at end of file
+<link rel="stylesheet" href="resources/threejs-textures.css">
+<script type="module" src="resources/three... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/kr/threejs-voxel-geometry.md | @@ -1085,4 +1085,4 @@ function updateCellGeometry(x, y, z) {
์ด ๊ธ์ด Three.js๋ก ๋ง์ธํฌ๋ํํธ ๊ฐ์ ๊ทธ๋ํฝ์ ๊ตฌํํ ๋ ์ข์ ์์์ ์ ๋ง๋ จํ๊ณ , geometry๋ฅผ ์ต์ ํํ๋ ๋ฐ ๋์์ด ๋์์ผ๋ฉด ํฉ๋๋ค.
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-voxel-geometry.js"></script>
+<script type="module" src="resources/threejs-voxel-geometry.js"></scr... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-cameras.md | @@ -600,4 +600,4 @@ function render(time) {
ะ ะฟะพะบะฐ ะดะฐะฒะฐะนัะต ะฟะตัะตะนะดะตะผ ะบ [ัะตะฝัะผ](threejs-shadows.html).
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-cameras.js"></script>
+<script type="module" src="resources/threejs-cameras.js"></script> | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-custom-buffergeometry.md | @@ -430,5 +430,5 @@ positionAttribute.needsUpdate = true;
ะดะตะนััะฒะธัะตะปัะฝะพ ะทะฐะฒะธัะธั ะพั ะฒะฐัะธั
ะฟะพััะตะฑะฝะพััะตะน.
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-custom-buffergeometry.js"></script>
+<script type="module" src="resources/threejs-custom-buffergeometry.js"></script>
| true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-fog.md | @@ -241,4 +241,4 @@ class FogGUIHelper {
</div>
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-fog.js"></script>
+<script type="module" src="resources/threejs-fog.js"></script> | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-lights.md | @@ -573,4 +573,4 @@ gui.add(light, 'power', 0, 2000);
ะะฐะปะตะต ะดะฐะฒะฐะนัะต ะฟะตัะตะนะดะตะผ ะบ [ัะฐะฑะพัะต ั ะบะฐะผะตัะฐะผะธ](threejs-cameras.html).
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-lights.js"></script>
+<script type="module" src="resources/threejs-lights.js"></script> | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-material-table.md | @@ -7,6 +7,6 @@ Mesh. ะะพั ัะฐะฑะปะธัะฐ, ะฟะพะบะฐะทัะฒะฐััะฐั, ะบะฐะบะธะต ััะฝะบัะธะธ
<div>
<div id="material-table" class="threejs_center"></div>
-<script type="module" src="../resources/threejs-material-table.js"></script>
-<link rel="stylesheet" href="../resources/threejs-material-table.css">
+<script type="module" src="resources/thre... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-materials.md | @@ -318,5 +318,5 @@ flat shaded
</div>
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-materials.js"></script>
+<script type="module" src="resources/threejs-materials.js"></script>
| true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-optimize-lots-of-objects.md | @@ -519,4 +519,4 @@ scene.add(mesh);
[ะดััะณะพะน ััะฐััะต](threejs-optimize-lots-of-objects-animated.html).
<canvas id="c"></canvas>
-<script type="module" src="../resources/threejs-lots-of-objects.js"></script>
+<script type="module" src="resources/threejs-lots-of-objects.js"></script> | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-primitives.md | @@ -329,5 +329,5 @@ function addLineGeometry(x, y, geometry) {
ะะฐะปะตะต ะดะฐะฒะฐะนัะต ัะฐััะผะพััะธะผ [ะบะฐะบ ัะฐะฑะพัะฐะตั ะณัะฐั ััะตะฝั ะธ ะบะฐะบ ะตะณะพ ะธัะฟะพะปัะทะพะฒะฐัั](threejs-scenegraph.html).
-<script type="module" src="../resources/threejs-primitives.js"></script>
-<link rel="stylesheet" href="../resources/threejs-primitives.css">
+<script t... | true |
Other | mrdoob | three.js | b98e8ff2d9dbfe261f7320749a825410a306545e.json | use lesson-builder v1.7.0 | threejs/lessons/ru/threejs-textures.md | @@ -615,5 +615,5 @@ metalness
roughness
-->
-<script type="module" src="../resources/threejs-textures.js"></script>
-<link rel="stylesheet" href="../resources/threejs-textures.css">
+<script type="module" src="resources/threejs-textures.js"></script>
+<link rel="stylesheet" href="resources/threejs-textures.css"> | true |
Other | mrdoob | three.js | 43b860a8728facf8efe16bb145060a152c929bf7.json | fix script link | threejs/lessons/ru/threejs-optimize-lots-of-objects.md | @@ -519,4 +519,4 @@ scene.add(mesh);
[ะดััะณะพะน ััะฐััะต](threejs-optimize-lots-of-objects-animated.html).
<canvas id="c"></canvas>
-<script type="module" src="resources/threejs-lots-of-objects.js"></script>
+<script type="module" src="../resources/threejs-lots-of-objects.js"></script> | false |
Other | mrdoob | three.js | 32c7c3244ab6c84747ca055a244f111c8390c29c.json | fix version references | threejs/lessons/fr/threejs-fundamentals.md | @@ -97,7 +97,7 @@ Tout d'abord, chargeons three.js :
```html
<script type="module">
-import * as THREE from './resources/threejs/r114/build/three.module.js';
+import * as THREE from './resources/threejs/r119/build/three.module.js';
</script>
```
@@ -121,7 +121,7 @@ dans le document html :
```html
<script ty... | true |
Other | mrdoob | three.js | 32c7c3244ab6c84747ca055a244f111c8390c29c.json | fix version references | threejs/lessons/fr/threejs-prerequisites.md | @@ -25,7 +25,7 @@ ou en ligne via une balise `<script type="module">`. Voici un exemple des deux
```html
<script type="module">
-import * as THREE from './resources/threejs/r114/build/three.module.js';
+import * as THREE from './resources/threejs/r119/build/three.module.js';
...
| true |
Other | mrdoob | three.js | 32c7c3244ab6c84747ca055a244f111c8390c29c.json | fix version references | threejs/lessons/ja/threejs-fundamentals.md | @@ -33,7 +33,7 @@ Three.jsใฏcanvasใซๆ็ปใใใใใcanvasใthree.jsใซๆธกใๅฟ
่ฆใใ
```html
<script type="module">
-import * as THREE from './resources/threejs/r110/build/three.module.js';
+import * as THREE from './resources/threejs/r119/build/three.module.js';
function main() {
const canvas = document.querySelector('#c');
@@ -... | true |
Other | mrdoob | three.js | 32c7c3244ab6c84747ca055a244f111c8390c29c.json | fix version references | threejs/lessons/ja/threejs-prerequisites.md | @@ -20,7 +20,7 @@ es6ใขใธใฅใผใซใฏในใฏใชใใใฎไธญใง `import` ใญใผใฏใผใใใพใ
```html
<script type="module">
-import * as THREE from './resources/threejs/r110/build/three.module.js';
+import * as THREE from './resources/threejs/r119/build/three.module.js';
...
| true |
Other | mrdoob | three.js | 87e8946694297c8751a3941160f513b1cb4227e2.json | add ja translation with orginal script | threejs/lessons/ja/threejs-primitives.md | @@ -0,0 +1,546 @@
+Title: Three.js ใฎใใชใใใฃใใ
+Description: three.js ใใชใใใฃใใฎๆ
ใ
+TOC: ใใชใใใฃใ
+
+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.
+ใใฎ่จไบใฏthree.jsใซใคใใฆใฎใทใชใผใบ่จไบใฎไธใคใงใใ
+ๆ... | false |
Other | mrdoob | three.js | 682f4bd31093fe1fd5b70cb40c8f83bd245d5371.json | add translation kr/threejs-game.md | threejs/lessons/kr/threejs-game.md | @@ -0,0 +1,1878 @@
+Title: Three.js๋ก ๊ฒ์ ๋ง๋ค๊ธฐ
+Description: Three.js๋ก ๊ฒ์์ ๋ง๋ค์ด๋ด
๋๋ค
+Category: solutions
+TOC: ๊ฒ์ ๋ง๋ค๊ธฐ
+
+์ ๊ฐ ๊ฝค ๋ง์ด ๋ฐ์๋ ์ง๋ฌธ ์ค ํ๋๊ฐ Three.js๋ก ๊ฒ์์ ๋ง๋๋ ๋ฐฉ๋ฒ์ ๊ดํ ๊ฒ์ด์์ต๋๋ค. ๊ธฐ์ด์ ์ธ ๊ฒ์ด๊ธด ํด๋ ๋ถ๋ ์ด ๊ธ์ ์ฌ๋ฌ๋ถ์ด ์ํ๋ ๋ด์ฉ์ด ์๋ค๋ฉด ์ข๊ฒ ๋ค์.
+
+๊ธ์ ์ฐ๋ ํ์ฌ๋ฅผ ๊ธฐ์ค์ผ๋ก, ์๋ง ์ด ๊ธ์ด ์ด ์๋ฆฌ์ฆ์์ ๊ฐ์ฅ ๊ธด ๊ธ์ด ๋ ๊ฒ ๊ฐ์ต๋๋ค. ์์ ๋ก ์ด ์ฝ๋๊ฐ ์ง๋์น๊ฒ ์ ๋ฌธ์ ์ผ๋ก ๋ณด์ผ ์๋ ์์ง๋ง ๊ทธ๊ฑด ์์ ๋ฅผ ๋ง๋ค๋ฉฐ ๋ฌธ์ ๊ฐ ์๊ธธ ๋๋ง๋ค ์ด... | false |
Other | mrdoob | three.js | d30d88526bb8c4017084e473d2a125225590bc8e.json | add translation kr/threejs-voxel-geometry.md | threejs/lessons/kr/threejs-voxel-geometry.md | @@ -0,0 +1,1088 @@
+Title: Three.js ๋ณต์
Geometry
+Description: ๋ง์ธํฌ๋ํํธ ๊ฐ์ ๋ณต์
geometry๋ฅผ ๋ง๋๋ ๋ฒ์ ์์๋ด
๋๋ค
+TOC: ๋ณต์
Geometry(๋ง์ธํฌ๋ํํธ) ๋ง๋ค๊ธฐ
+
+โป [๋ณต์
](https://ko.wikipedia.org/wiki/%EB%B3%B5%EC%85%80): Voxel, ๋ณผ๋ฅจ(volume, ๋ถํผ)๊ณผ ํฝ์
(pixel)์ ํฉ์ฑ์ด๋ก, ๋ง์ธํฌ๋ํํธ์ ๋ธ๋ก์ฒ๋ผ ๋ถํผ๊ฐ ์๋ ํฝ์
์ ๋งํฉ๋๋ค. ์ญ์ฃผ.
+
+์ด ์ฃผ์ ๋ ๊ฝค ๋ง์ ์ปค๋ฎค๋ํฐ์ ๊ณตํต์ ์ผ๋ก ์ฌ๋ผ์ค๋ ์ฃผ์ ์
๋๋ค. "๋ง์ธํฌ๋ํํธ ๋ธ๋ก ๊ฐ์ ๋ณต์
์ ์ด... | false |
Other | mrdoob | three.js | 1f3f78f42d008cb920b44930aedf5f55ec87ffbe.json | add translation kr/threejs-cleanup.md | threejs/lessons/kr/threejs-cleanup.md | @@ -0,0 +1,412 @@
+Title: Three.js ๋ฉ๋ชจ๋ฆฌ ํด์ ํ๊ธฐ
+Description: Three.js๋ฅผ ์ฌ์ฉํ ๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ํด์ ํ๋ ๋ฒ์ ์์๋ด
๋๋ค
+TOC: ๋ฉ๋ชจ๋ฆฌ ํด์ ํ๊ธฐ
+
+Three.js ์ฑ์ ์๊ฐ๋ณด๋ค ๋ง์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ์ฌ์ฉํฉ๋๋ค. 3D ๋ชจ๋ธ์ ์ ์ ๋ฐ์ดํฐ๋ ๋ณดํต 1MB์์ 20MB ์ ๋์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ์ฐจ์งํ์ฃ . ํ
์ค์ฒ๋ก JPG ํ์ผ์ ์ฌ์ฉํ๋ ๋ชจ๋ธ์ ํ
์ค์ฒ๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด JPG ํ์ผ์ ์์ถ์ ์์ ํ ํ์ด์ผ ํ๋๋ฐ, ์ด ํ
์ค์ฒ๋ 1024x1024๋น ์ฝ 4์์ 6MB ์ ๋์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ์ฌ์ฉํฉ๋๋ค.
+
+๋๋ค์์ Three.js ์ฑ์ ์์์ ํ ๋ฒ ๋ถ... | false |
Other | mrdoob | three.js | 2a76908bcf50c966146e593ea6efd174382adf6a.json | add translation kr/threejs-billboards.md | threejs/lessons/kr/threejs-billboards.md | @@ -0,0 +1,286 @@
+Title: Three.js ๋น๋ณด๋(Billboards)
+Description: ๋ฌผ์ฒด๊ฐ ํญ์ ์นด๋ฉ๋ผ๋ฅผ ๋ฐ๋ผ๋ณด๋๋ก ํ๋ ๋ฒ์ ์์๋ด
๋๋ค
+TOC: ๋น๋ณด๋์ ํ์ฌ๋
+
+[์ด์ ๊ธ](threejs-canvas-textures.html)์์๋ `CanvasTexture`๋ฅผ ์ด์ฉํด ์บ๋ฆญํฐ์ ์ด๋ฆํ/๋ช
์ฐฐ์ ๋ถ์ด๋ ๋ฒ์ ์์๋ดค์ต๋๋ค. ๋๋ก๋ ์ด ์ด๋ฆํ๊ฐ ํญ์ ์นด๋ฉ๋ผ๋ฅผ ํฅํ๊ฒ ํด์ผ ํ ๊ฒฝ์ฐ๋ ์๊ฒ ์ฃ . Three.js์ `Sprite`์ `SpriteMaterial`์ ์ฌ์ฉํ๋ฉด ์ด๊ฑธ ์ฝ๊ฒ ๊ตฌํํ ์ ์์ต๋๋ค.
+
+[์บ๋ฒ์ค ํ
์ค์ฒ์ ๊ดํ ๊ธ](t... | false |
Other | mrdoob | three.js | 5349e13eee8458491a664a63e5873b18d6687ed2.json | add translation kr/threejs-canvas-texture.md | threejs/lessons/kr/threejs-canvas-textures.md | @@ -0,0 +1,381 @@
+Title: Three.js ์บ๋ฒ์ค ํ
์ค์ฒ
+Description: ์บ๋ฒ์ค๋ฅผ Three.js ํ
์ค์ฒ๋ก ์ฐ๋ ๋ฐฉ๋ฒ์ ์์๋ด
๋๋ค
+TOC: ์บ๋ฒ์ค๋ก ๋์ ํ
์ค์ฒ ๋ง๋ค๊ธฐ
+
+โป ์ด ๊ธ์ [ํ
์ค์ฒ์ ๊ดํ ๊ธ](threejs-textures.html)์์ ์ด์ด์ง๋๋ค. ์ด์ ๊ธ์ ์ฝ์ง ์์๋ค๋ฉด ๋จผ์ ์ฝ๊ณ ์ค๊ธฐ ๋ฐ๋๋๋ค.
+
+[์ด์ ๊ธ](threejs-textures.html)์์ ํ
์ค์ฒ๋ฅผ ๋ค๋ฃฐ ๋๋ ์ฃผ๋ก ์ด๋ฏธ์ง ํ์ผ๋ก ํ
์ค์ฒ๋ฅผ ๋ง๋ค์์ต๋๋ค. ํ์ง๋ง ๊ฒฝ์ฐ์ ๋ฐ๋ผ์๋ ๋ฐํ์์ ํ
์ค์ฒ๋ฅผ ๋ง๋ค์ด์ผ ํ ์๋ ์์ฃ . `CanvasTexture`๋ฅผ ์ฌ์ฉ... | false |
Other | mrdoob | three.js | c99ad7363cb220d8851dd818f5b33c31f5b477b5.json | add translation kr/threejs-indexed-textures.md | threejs/lessons/kr/threejs-indexed-textures.md | @@ -0,0 +1,594 @@
+Title: ํผํน๊ณผ ์์์ ์ธ๋ฑ์ค ํ
์ค์ฒ ์ฌ์ฉํ๊ธฐ
+Description: ์ธ๋ฑ์ค ํ
์ค์ฒ๋ฅผ ์ฌ์ฉํด ํผํน์ ๊ตฌํํ๊ณ , ์์์ ์ ํ๋ ๋ฒ์ ์์๋ด
๋๋ค
+TOC: ํผํน๊ณผ ์์์ ์ธ๋ฑ์ค ํ
์ค์ฒ ์ฌ์ฉํ๊ธฐ
+
+โป ์ด ๊ธ์ [HTML ์์๋ฅผ 3D๋ก ์ ๋ ฌํ๊ธฐ](threejs-align-html-elements-to-3d.html)์์ ์ด์ด์ง๋๋ค. ์ด์ ๊ธ์ ์ฝ์ง ์์๋ค๋ฉด ๋จผ์ ์ฝ๊ณ ์ค๊ธฐ ๋ฐ๋๋๋ค.
+
+
+Three.js๋ฅผ ์ฐ๋ค๋ณด๋ฉด ์ฐฝ์์ ์ธ ํด๊ฒฐ๋ฒ์ด ํ์ํ ๋๊ฐ ์์ต๋๋ค. ์ ๋ ๋๋ฆ ์๋ฆฌ์ฆ๋ฅผ ์งํํ๋ฉฐ ๋๋ฆ ๋ง์ ํด๊ฒฐ๋ฒ์ ์ฐพ๊ณ , ์ ์ด ๋์์ฃ . ํน ... | false |
Other | mrdoob | three.js | a511e81b9b8d3339c77f04d4e027b05507bfcdb6.json | Fix sun positioning in sky shader example (#21575)
* Fix sun positioning in sky shader example
* Fix sun positioning in ocean shader example
* Update webgl_shaders_ocean.html
Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org> | examples/webgl_shaders_ocean.html | @@ -94,20 +94,20 @@
skyUniforms[ 'mieDirectionalG' ].value = 0.8;
const parameters = {
- inclination: 0.49,
- azimuth: 0.205
+ inclination: 0.02,
+ azimuth: 0.045
};
const pmremGenerator = new THREE.PMREMGenerator( renderer );
function updateSun() {
- const theta = M... | true |
Other | mrdoob | three.js | a511e81b9b8d3339c77f04d4e027b05507bfcdb6.json | Fix sun positioning in sky shader example (#21575)
* Fix sun positioning in sky shader example
* Fix sun positioning in ocean shader example
* Update webgl_shaders_ocean.html
Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org> | examples/webgl_shaders_sky.html | @@ -42,8 +42,8 @@
rayleigh: 3,
mieCoefficient: 0.005,
mieDirectionalG: 0.7,
- inclination: 0.49, // elevation / inclination
- azimuth: 0.25, // Facing front,
+ inclination: 0.02, // elevation / inclination
+ azimuth: 0, // Facing front
exposure: renderer.toneMappingExposure
... | true |
Other | mrdoob | three.js | b2ed7e9aa9144e9ecc8841b915c3745b494050da.json | add bumpthree grunt task | Gruntfile.js | @@ -3,6 +3,8 @@
'use strict';
const fs = require('fs');
+const path = require('path');
+const semver = require('semver');
module.exports = function(grunt) {
@@ -66,7 +68,61 @@ module.exports = function(grunt) {
}).done();
});
- grunt.registerTask('build', ['clean', 'copy', 'buildlessons']);
+ grunt... | false |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/lessons/threejs-lights.md | @@ -156,7 +156,7 @@ And here's our code setting up dat.GUI
```javascript
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
-gui.add(light, 'intensity', 0, 2);
+gui.add(light, 'intensity', 0, 2, 0.01);
```
And here's the result
@@ -204,7 +204,7 @@ const gui = new ... | true |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/threejs-lights-ambient.html | @@ -106,7 +106,7 @@
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
- gui.add(light, 'intensity', 0, 2);
+ gui.add(light, 'intensity', 0, 2, 0.01);
}
function resizeRendererToDisplaySize(renderer) { | true |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/threejs-lights-directional-w-helper.html | @@ -126,7 +126,7 @@
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
- gui.add(light, 'intensity', 0, 2);
+ gui.add(light, 'intensity', 0, 2, 0.01);
makeXYZGUI(gui, light.position, 'position', updateLight);
makeXYZGUI(gui, light.target.pos... | true |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/threejs-lights-directional.html | @@ -109,7 +109,7 @@
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
- gui.add(light, 'intensity', 0, 2);
+ gui.add(light, 'intensity', 0, 2, 0.01);
gui.add(light.target.position, 'x', -10, 10);
gui.add(light.target.position, 'z', -10, 10);
... | true |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/threejs-lights-hemisphere.html | @@ -109,7 +109,7 @@
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('skyColor');
gui.addColor(new ColorGUIHelper(light, 'groundColor'), 'value').name('groundColor');
- gui.add(light, 'intensity', 0, 2);
+ gui.add(light, 'intensity', 0, 2, 0.01);
}
f... | true |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/threejs-lights-point-physically-correct.html | @@ -122,7 +122,7 @@
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
- gui.add(light, 'decay', 0, 4);
+ gui.add(light, 'decay', 0, 4, 0.01);
gui.add(light, 'power', 0, 1220);
makeXYZGUI(gui, light.position, 'position'); | true |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/threejs-lights-point.html | @@ -122,7 +122,7 @@
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
- gui.add(light, 'intensity', 0, 2);
+ gui.add(light, 'intensity', 0, 2, 0.01);
gui.add(light, 'distance', 0, 40).onChange(updateLight);
makeXYZGUI(gui, light.position, '... | true |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/threejs-lights-rectarea.html | @@ -139,7 +139,7 @@
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
- gui.add(light, 'intensity', 0, 10);
+ gui.add(light, 'intensity', 0, 10, 0.01);
gui.add(light, 'width', 0, 20).onChange(updateLight);
gui.add(light, 'height', 0, 20).onCh... | true |
Other | mrdoob | three.js | e145b6f4f84852c947173d52fe6cf46b3dd75342.json | fix intensity gui | threejs/threejs-lights-spot-w-helper.html | @@ -139,10 +139,10 @@
const gui = new dat.GUI();
gui.addColor(new ColorGUIHelper(light, 'color'), 'value').name('color');
- gui.add(light, 'intensity', 0, 2);
+ gui.add(light, 'intensity', 0, 2, 0.01);
gui.add(light, 'distance', 0, 40).onChange(updateLight);
gui.add(new DegRadHelper(light, '... | true |
Other | mrdoob | three.js | d0665689979805ab3e0e15572f3e5e0d231ceb48.json | change onChange to updateLight | threejs/lessons/threejs-lights.md | @@ -286,18 +286,18 @@ Then we can use that for both the light's position
and the target's position like this
```javascript
-+const onChange = () => {
++function updateLight{
+ light.target.updateMatrixWorld();
+ helper.update();
-+};
-+onChange();
++}
++updateLight();
const gui = new dat.GUI();
gui.addColor... | true |
Other | mrdoob | three.js | d0665689979805ab3e0e15572f3e5e0d231ceb48.json | change onChange to updateLight | threejs/threejs-lights-directional-w-helper.html | @@ -118,18 +118,18 @@
const helper = new THREE.DirectionalLightHelper(light);
scene.add(helper);
- const onChange = () => {
+ function updateLight() {
light.target.updateMatrixWorld();
helper.update();
- };
- onChange();
+ }
+ updateLight();
const gui = new dat.GUI();
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.