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
b6b702c50b236fee662c30c9e79c570861270d2d.json
add language tags to code blocks
threejs/lessons/threejs-scenegraph.md
@@ -44,7 +44,7 @@ sun, earth, moon as a demonstration of how to use a scenegraph. Of course the real sun, earth, and moon use physics but for our purposes we'll fake it with a scenegraph. -``` +```js // an array of objects who's rotation to update const objects = []; @@ -76,7 +76,7 @@ Let's also put a single po...
true
Other
mrdoob
three.js
b6b702c50b236fee662c30c9e79c570861270d2d.json
add language tags to code blocks
threejs/lessons/threejs-shadows.md
@@ -50,15 +50,15 @@ We'll use some of the code from [the previous article](threejs-cameras.html). Let's set the background color to white. -``` +```js const scene = new THREE.Scene(); +scene.background = new THREE.Color('white'); ``` Then we'll setup the same checkerboard ground but this time it's using a `...
true
Other
mrdoob
three.js
b6b702c50b236fee662c30c9e79c570861270d2d.json
add language tags to code blocks
threejs/lessons/threejs-textures.md
@@ -41,7 +41,7 @@ We'll modify one of our first samples. All we need to do is create a `TextureLoa [`load`](TextureLoader.load) method with the URL of an image and and set the material's `map` property to the result instead of setting its `color`. -``` +```js +const loader = new THREE.TextureLoader(); const mat...
true
Other
mrdoob
three.js
0704dc9a6d4b960c66c7993e61e09de09ba2109c.json
add postprocessing article
threejs/lessons/resources/images/threejs-postprocessing.svg
@@ -0,0 +1,368 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="100%" height="100%" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"...
true
Other
mrdoob
three.js
0704dc9a6d4b960c66c7993e61e09de09ba2109c.json
add postprocessing article
threejs/lessons/threejs-post-processing.md
@@ -1,4 +1,258 @@ Title: Three.js Post Processing Description: How to Post Process in THREE.js -TBD \ No newline at end of file +*Post processing* generally refers to applying some kind of effect or filter to a 2D image. In the case of THREE.js we have a scene with a bunch of meshes in it. We render that scene into...
true
Other
mrdoob
three.js
0704dc9a6d4b960c66c7993e61e09de09ba2109c.json
add postprocessing article
threejs/lessons/toc.html
@@ -12,6 +12,7 @@ <li><a href="/threejs/lessons/threejs-load-gltf.html">Load a .GLTF file</a></li> <li><a href="/threejs/lessons/threejs-multiple-scenes.html">Multiple Canvases, Multiple Scenes</a></li> <li><a href="/threejs/lessons/threejs-picking.html">Picking Objects with the mouse</a></li> ...
true
Other
mrdoob
three.js
0704dc9a6d4b960c66c7993e61e09de09ba2109c.json
add postprocessing article
threejs/threejs-postprocessing-custom.html
@@ -0,0 +1,155 @@ +<!-- 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 - PostProcessing - Custom</title> + <style> + bo...
true
Other
mrdoob
three.js
0704dc9a6d4b960c66c7993e61e09de09ba2109c.json
add postprocessing article
threejs/threejs-postprocessing-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 - PostProcessing - GUI</title> + <style> + body ...
true
Other
mrdoob
three.js
0704dc9a6d4b960c66c7993e61e09de09ba2109c.json
add postprocessing article
threejs/threejs-postprocessing.html
@@ -0,0 +1,141 @@ +<!-- 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 - PostProcessing</title> + <style> + body { + ...
true
Other
mrdoob
three.js
db5eb156bab24de0e8ac6144c143e417992ec041.json
add render target article
threejs/lessons/threejs-picking.md
@@ -257,8 +257,7 @@ This can solve issue 2 and 3 above. As for issue 1, speed, it really depends. Ev One thing we can do though is since we're only going to be reading one pixel we can just setup the camera so only that one pixel is drawn. We can do this using `PerspectiveCamera.setViewOffset` which lets us tell THR...
true
Other
mrdoob
three.js
db5eb156bab24de0e8ac6144c143e417992ec041.json
add render target article
threejs/lessons/threejs-post-processing.md
@@ -0,0 +1,4 @@ +Title: Three.js Post Processing +Description: How to Post Process in THREE.js + +TBD \ No newline at end of file
true
Other
mrdoob
three.js
db5eb156bab24de0e8ac6144c143e417992ec041.json
add render target article
threejs/lessons/threejs-rendertargets.md
@@ -0,0 +1,145 @@ +Title: Three.js Render Targets +Description: How to render to a texture. + +A render target in three.js is basicaly a texture you can render to. +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 re...
true
Other
mrdoob
three.js
db5eb156bab24de0e8ac6144c143e417992ec041.json
add render target article
threejs/lessons/toc.html
@@ -27,6 +27,7 @@ <li><a href="/threejs/lessons/threejs-cameras.html">Cameras</a></li> <li><a href="/threejs/lessons/threejs-shadows.html">Shadows</a></li> <li><a href="/threejs/lessons/threejs-fog.html">Fog</a></li> + <li><a href="/threejs/lessons/threejs-rendertargets.html">Render Targets</a></li> ...
true
Other
mrdoob
three.js
db5eb156bab24de0e8ac6144c143e417992ec041.json
add render target article
threejs/threejs-render-target.html
@@ -0,0 +1,146 @@ +<!-- 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 - Responsive</title> + <style> + body { + ...
true
Other
mrdoob
three.js
63bf6a6f22cef9ec74af326bc59450188a6c9fa0.json
add link to eslint rules
threejs/lessons/threejs-prerequisites.md
@@ -305,7 +305,7 @@ You'll get warnings using `THREE` so add `/* global THREE */` at the top of your Above you can see eslint knows the rule that `UpperCaseNames` are constructors and so you should be using `new`. Another error caught and avoided. This is [the `new-cap` rule](https://eslint.org/docs/rules/new-cap). ...
false
Other
mrdoob
three.js
446f7732ea7067f283686ea04a4171fc78eefb02.json
fix ios iframe issue
threejs/threejs-picking-gpu.html
@@ -8,7 +8,6 @@ <style> body { margin: 0; - position: fixed; } #c { width: 100vw;
true
Other
mrdoob
three.js
446f7732ea7067f283686ea04a4171fc78eefb02.json
fix ios iframe issue
threejs/threejs-picking-raycaster-complex-geo.html
@@ -8,7 +8,6 @@ <style> body { margin: 0; - position: fixed; } #c { width: 100vw;
true
Other
mrdoob
three.js
446f7732ea7067f283686ea04a4171fc78eefb02.json
fix ios iframe issue
threejs/threejs-picking-raycaster-transparency.html
@@ -8,7 +8,6 @@ <style> body { margin: 0; - position: fixed; } #c { width: 100vw;
true
Other
mrdoob
three.js
069e7e17ed0d4efceed4bdbfe4315a726658aec1.json
put light on camera
threejs/threejs-picking-gpu.html
@@ -53,7 +53,7 @@ const intensity = 1; const light = new THREE.DirectionalLight(color, intensity); light.position.set(-1, 2, 4); - scene.add(light); + camera.add(light); } const boxWidth = 1;
true
Other
mrdoob
three.js
069e7e17ed0d4efceed4bdbfe4315a726658aec1.json
put light on camera
threejs/threejs-picking-raycaster-complex-geo.html
@@ -51,7 +51,7 @@ const intensity = 1; const light = new THREE.DirectionalLight(color, intensity); light.position.set(-1, 2, 4); - scene.add(light); + camera.add(light); } const geometry = new THREE.SphereBufferGeometry(.6, 100, 100);
true
Other
mrdoob
three.js
069e7e17ed0d4efceed4bdbfe4315a726658aec1.json
put light on camera
threejs/threejs-picking-raycaster-transparency.html
@@ -51,7 +51,7 @@ const intensity = 1; const light = new THREE.DirectionalLight(color, intensity); light.position.set(-1, 2, 4); - scene.add(light); + camera.add(light); } const boxWidth = 1;
true
Other
mrdoob
three.js
069e7e17ed0d4efceed4bdbfe4315a726658aec1.json
put light on camera
threejs/threejs-picking-raycaster.html
@@ -50,7 +50,7 @@ const intensity = 1; const light = new THREE.DirectionalLight(color, intensity); light.position.set(-1, 2, 4); - scene.add(light); + camera.add(light); } const boxWidth = 1;
true
Other
mrdoob
three.js
3eb72fb10de61fe45012d47c8ba6ed37283fcbf1.json
fix lesson links
threejs/lessons/resources/lesson.js
@@ -20,254 +20,262 @@ function getQueryParams() { $(document).ready(function($){ const codeKeywordLinks = { - AnimationAction: 'https://threejs.org/docs/api/animation/AnimationAction.html', - AnimationClip: 'https://threejs.org/docs/api/animation/AnimationClip.html', - AnimationMixer: 'https://threejs.or...
false
Other
mrdoob
three.js
0e7dcddb7ae5f04928028b56d6cace67d5a856a0.json
add more binary files
.gitattirbutes
@@ -1,2 +0,0 @@ -.jpeg binary -
false
Other
mrdoob
three.js
01784f88f291f9d24430e3ac32cd80aa4aac4b1d.json
fix shadow visibility
threejs/threejs-load-gltf-shadows.html
@@ -101,8 +101,10 @@ const cameraHelper = new THREE.CameraHelper(cam); scene.add(cameraHelper); + cameraHelper.visible = false; const helper = new THREE.DirectionalLightHelper(light, 100); scene.add(helper); + helper.visible = false; function makeXYZGUI(gui, vector3, name, onChangeFn)...
false
Other
mrdoob
three.js
5b4a70bb1d4876ae161e92be5ac37b0858f3bbd3.json
copy image (#22741)
examples/jsm/utils/RoughnessMipmapper.js
@@ -98,6 +98,7 @@ class RoughnessMipmapper { material.roughnessMap.repeat.copy( roughnessMap.repeat ); material.roughnessMap.center.copy( roughnessMap.center ); material.roughnessMap.rotation = roughnessMap.rotation; + material.roughnessMap.image = roughnessMap.image; material.roughnessMap.matrixAut...
false
Other
mrdoob
three.js
8b80974628275e16583467410d0f488161c5a81b.json
Use Fetch in FileLoader (#22510) * initial working draft * no progress? no problem? * credentials & progress sorted. * length logic * new loadAsync function. load behaviour unchanged. * erroneous self * catching errors nicely. * fix spaces * remove todo
src/loaders/FileLoader.js
@@ -19,19 +19,17 @@ class FileLoader extends Loader { url = this.manager.resolveURL( url ); - const scope = this; - const cached = Cache.get( url ); if ( cached !== undefined ) { - scope.manager.itemStart( url ); + this.manager.itemStart( url ); - setTimeout( function () { + setTimeout( () =...
false
Other
mrdoob
three.js
11c6a21f0222297bf34c7806470dcf24fb4341ec.json
Add missing DataTexture2DArray declaration for ts
src/Three.d.ts
@@ -25,6 +25,7 @@ export * from './objects/Points'; export * from './objects/Group'; export * from './textures/VideoTexture'; export * from './textures/DataTexture'; +export * from './textures/DataTexture2DArray'; export * from './textures/DataTexture3D'; export * from './textures/CompressedTexture'; export * fro...
false
Other
mrdoob
three.js
b7707a06343ecd6658bc24be7156dc1cb7143340.json
Replace .includes with .indexOf
examples/js/loaders/GLTFLoader.js
@@ -696,7 +696,7 @@ THREE.GLTFLoader = ( function () { if ( ! loader ) { - if ( json.extensionsRequired && json.extensionsRequired.includes( this.name ) ) { + if ( json.extensionsRequired && json.extensionsRequired.indexOf( this.name ) >= 0 ) { throw new Error( 'THREE.GLTFLoader: setKTX2Loader must be...
true
Other
mrdoob
three.js
b7707a06343ecd6658bc24be7156dc1cb7143340.json
Replace .includes with .indexOf
examples/jsm/loaders/GLTFLoader.js
@@ -759,7 +759,7 @@ var GLTFLoader = ( function () { if ( ! loader ) { - if ( json.extensionsRequired && json.extensionsRequired.includes( this.name ) ) { + if ( json.extensionsRequired && json.extensionsRequired.indexOf( this.name ) >= 0 ) { throw new Error( 'THREE.GLTFLoader: setKTX2Loader must be c...
true
Other
mrdoob
three.js
cee66d393251d2e69d3990e0464238b3fa6f94e6.json
Fix code style and missing break
examples/js/loaders/GLTFLoader.js
@@ -279,19 +279,20 @@ THREE.GLTFLoader = ( function () { case EXTENSIONS.EXT_MESHOPT_COMPRESSION: if ( extensionsRequired.includes( extensionName ) ) { - if ( !this.meshoptDecoder ) { + if ( ! this.meshoptDecoder ) { throw new Error( 'THREE.GLTFLoader: setMeshoptDecoder must b...
true
Other
mrdoob
three.js
cee66d393251d2e69d3990e0464238b3fa6f94e6.json
Fix code style and missing break
examples/jsm/loaders/GLTFLoader.js
@@ -342,19 +342,20 @@ var GLTFLoader = ( function () { case EXTENSIONS.EXT_MESHOPT_COMPRESSION: if ( extensionsRequired.includes( extensionName ) ) { - if ( !this.meshoptDecoder ) { + if ( ! this.meshoptDecoder ) { throw new Error( 'THREE.GLTFLoader: setMeshoptDecoder must be ...
true
Other
mrdoob
three.js
8d1c00395bc97b91deeddcda97fde80e4d00e614.json
Use strict equality in extension check.
src/renderers/webgl/WebGLLights.js
@@ -418,12 +418,12 @@ function WebGLLights( extensions, capabilities ) { // WebGL 1 - if ( extensions.has( 'OES_texture_float_linear' ) == true ) { + if ( extensions.has( 'OES_texture_float_linear' ) === true ) { state.rectAreaLTC1 = UniformsLib.LTC_FLOAT_1; state.rectAreaLTC2 = UniformsLib...
false
Other
mrdoob
three.js
dab677f6a81254d8552cfa42739ccc863012d86f.json
Apply conventions and tidy up.
examples/jsm/lights/RectAreaLightUniformsLib.d.ts
@@ -1,10 +1,5 @@ -import { - WebGLRenderer, -} from '../../../src/Three'; - - export namespace RectAreaLightUniformsLib { - export function init( renderer: WebGLRenderer ): void; + export function init(): void; }
true
Other
mrdoob
three.js
dab677f6a81254d8552cfa42739ccc863012d86f.json
Apply conventions and tidy up.
examples/jsm/lights/RectAreaLightUniformsLib.js
@@ -38,7 +38,7 @@ var int32View = new Int32Array( floatView.buffer ); * used, eg. in Ogre), with the additional benefit of rounding, inspired * by James Tursa?s half-precision code. */ -function toHalf ( val ) { +function toHalf( val ) { floatView[ 0 ] = val; var x = int32View[ 0 ]; @@ -79,7 +79,7 @@ function...
true
Other
mrdoob
three.js
dab677f6a81254d8552cfa42739ccc863012d86f.json
Apply conventions and tidy up.
examples/webgl_lights_rectarealight.html
@@ -54,7 +54,7 @@ var ambient = new THREE.AmbientLight( 0xffffff, 0.1 ); scene.add( ambient ); - RectAreaLightUniformsLib.init( ); + RectAreaLightUniformsLib.init(); rectLight = new THREE.RectAreaLight( 0xffffff, 1, 10, 10 ); rectLight.position.set( 5, 5, 0 );
true
Other
mrdoob
three.js
dab677f6a81254d8552cfa42739ccc863012d86f.json
Apply conventions and tidy up.
src/renderers/webgl/WebGLLights.js
@@ -407,19 +407,19 @@ function WebGLLights( extensions, capabilities ) { if ( rectAreaLength > 0 ) { - if ( capabilities.isWebGL2 || extensions.get( 'OES_texture_float_linear' ) ) { + if ( capabilities.isWebGL2 || extensions.has( 'OES_texture_float_linear' ) ) { state.rectAreaLTC1 = UniformsLib.LTC_FL...
true
Other
mrdoob
three.js
eb2f83b0cabbf4eaf9067acc01de22f0fe39fe1d.json
Remove trailing space.
src/renderers/webgl/WebGLLights.js
@@ -404,7 +404,7 @@ function WebGLLights( extensions, capabilities ) { } } - + if ( rectAreaLength > 0 ) { if ( capabilities.isWebGL2 || extensions.get( 'OES_texture_float_linear' ) ) {
false
Other
mrdoob
three.js
ccfd940ede6dca8a36e605ada4b27994155d939d.json
Move renderer extension check to internal API.
examples/jsm/lights/RectAreaLightUniformsLib.js
@@ -84,7 +84,7 @@ function toHalf ( val ) { var RectAreaLightUniformsLib = { // renderer should be an instance of THREE.WebGLRenderer - init: function ( renderer ) { + init: function () { // source: https://github.com/selfshadow/ltc_code/tree/master/fit/results/ltc.js @@ -94,39 +94,25 @@ var RectAreaLightUn...
true
Other
mrdoob
three.js
ccfd940ede6dca8a36e605ada4b27994155d939d.json
Move renderer extension check to internal API.
examples/webgl_lights_rectarealight.html
@@ -54,7 +54,7 @@ var ambient = new THREE.AmbientLight( 0xffffff, 0.1 ); scene.add( ambient ); - RectAreaLightUniformsLib.init( renderer ); + RectAreaLightUniformsLib.init( ); rectLight = new THREE.RectAreaLight( 0xffffff, 1, 10, 10 ); rectLight.position.set( 5, 5, 0 );
true
Other
mrdoob
three.js
ccfd940ede6dca8a36e605ada4b27994155d939d.json
Move renderer extension check to internal API.
src/renderers/WebGLRenderer.js
@@ -297,7 +297,7 @@ function WebGLRenderer( parameters ) { programCache = new WebGLPrograms( _this, cubemaps, extensions, capabilities, bindingStates, clipping ); materials = new WebGLMaterials( properties ); renderLists = new WebGLRenderLists( properties ); - renderStates = new WebGLRenderStates(); + render...
true
Other
mrdoob
three.js
ccfd940ede6dca8a36e605ada4b27994155d939d.json
Move renderer extension check to internal API.
src/renderers/webgl/WebGLLights.d.ts
@@ -1,6 +1,9 @@ +import { WebGLExtensions } from './WebGLExtensions'; +import { WebGLCapabilities } from './WebGLCapabilities'; + export class WebGLLights { - constructor( gl: WebGLRenderingContext, properties: any, info: any ); + constructor( extensions: WebGLExtensions, capabilities: WebGLCapabilities ); state...
true
Other
mrdoob
three.js
ccfd940ede6dca8a36e605ada4b27994155d939d.json
Move renderer extension check to internal API.
src/renderers/webgl/WebGLLights.js
@@ -150,7 +150,7 @@ function shadowCastingLightsFirst( lightA, lightB ) { } -function WebGLLights() { +function WebGLLights( extensions, capabilities ) { const cache = new UniformsCache(); @@ -404,11 +404,24 @@ function WebGLLights() { } } - + if ( rectAreaLength > 0 ) { - state.rectAreaLTC1...
true
Other
mrdoob
three.js
ccfd940ede6dca8a36e605ada4b27994155d939d.json
Move renderer extension check to internal API.
src/renderers/webgl/WebGLRenderStates.d.ts
@@ -2,6 +2,8 @@ import { Scene } from '../../scenes/Scene'; import { Camera } from '../../cameras/Camera'; import { Light } from '../../lights/Light'; import { WebGLLights } from './WebGLLights'; +import { WebGLExtensions } from './WebGLExtensions'; +import { WebGLCapabilities } from './WebGLCapabilities'; interf...
true
Other
mrdoob
three.js
ccfd940ede6dca8a36e605ada4b27994155d939d.json
Move renderer extension check to internal API.
src/renderers/webgl/WebGLRenderStates.js
@@ -1,8 +1,8 @@ import { WebGLLights } from './WebGLLights.js'; -function WebGLRenderState() { +function WebGLRenderState( extensions, capabilities ) { - const lights = new WebGLLights(); + const lights = new WebGLLights( extensions, capabilities ); const lightsArray = []; const shadowsArray = []; @@ -50,7 +...
true
Other
mrdoob
three.js
9189e7ddd4394d9b733788321213675acc3c31d8.json
Remove Scene.dispose definition
src/scenes/Scene.d.ts
@@ -68,6 +68,5 @@ export class Scene extends Object3D { ) => void; toJSON( meta?: any ): any; - dispose(): void; }
false
Other
mrdoob
three.js
96cf62c42dcb99838692d3566df0d22e3f03e22a.json
Adjust API. Select float or half via extensions.
examples/jsm/lights/RectAreaLightUniformsLib.js
@@ -2,6 +2,7 @@ import { ClampToEdgeWrapping, DataTexture, HalfFloatType, + FloatType, LinearFilter, NearestFilter, RGBAFormat, @@ -25,7 +26,9 @@ import { // by Eric Heitz, Jonathan Dupuy, Stephen Hill and David Neubelt // code: https://github.com/selfshadow/ltc_code/ -// Convert float32 array value to ...
false
Other
mrdoob
three.js
8fac77159bd3160383bbb201dea613a6989f6aae.json
Remove WebGL extension check. Use new API.
examples/webgl_lights_rectarealight.html
@@ -46,23 +46,6 @@ renderer.outputEncoding = THREE.sRGBEncoding; document.body.appendChild( renderer.domElement ); - // Check for float-RT support - // TODO (abelnation): figure out fall-back for float textures - - if ( renderer.capabilities.isWebGL2 === false && ! renderer.extensions.get( 'OES_tex...
false
Other
mrdoob
three.js
09ba9c45338f071cebae8e090dd47b494a9e2109.json
Change colors of spheres and boxes hands
examples/jsm/webxr/XRHandPrimitiveModel.js
@@ -31,8 +31,8 @@ class XRHandPrimitiveModel { } - var jointMaterial = new MeshStandardMaterial( { color: 0x000000, roughness: 0.2, metalness: 0.8 } ); - var tipMaterial = new MeshStandardMaterial( { color: 0x333333, roughness: 0.2, metalness: 0.8 } ); + var jointMaterial = new MeshStandardMaterial( { col...
true
Other
mrdoob
three.js
09ba9c45338f071cebae8e090dd47b494a9e2109.json
Change colors of spheres and boxes hands
examples/webxr_vr_handinput_mesh.html
@@ -115,10 +115,10 @@ scene.add( hand1 ); handModels.left = [ - handModelFactory.createHandModel( hand1, "oculus", { model: "lowpoly" } ), - handModelFactory.createHandModel( hand1, "oculus" ), + handModelFactory.createHandModel( hand1, "boxes" ), handModelFactory.createHandModel( hand1, "...
true
Other
mrdoob
three.js
2cd4f2a3d376c82dad940a00d30797013b574d46.json
Update handinput_mesh example
examples/webxr_vr_handinput_mesh.html
@@ -103,7 +103,6 @@ hand1 = renderer.xr.getHand( 0 ); hand1.add( handModelFactory.createHandModel( hand1 ) ); - scene.add( hand1 ); // Hand 2 @@ -113,7 +112,7 @@ scene.add( controllerGrip2 ); hand2 = renderer.xr.getHand( 1 ); - hand2.add( handModelFactory.createHandModel( hand2 ) ...
false
Other
mrdoob
three.js
2e2d7e41a10c36ff72b87cf556f3e4a0ad36d5fa.json
Add ZSTDDecoder, add ZSTD support to KTX2Loader.
examples/jsm/libs/zstddec.module.js
@@ -0,0 +1,115 @@ +/** + * @author Don McCurdy / https://www.donmccurdy.com + */ + +let init, instance, heap; + +const importObject = { + + env: { + + emscripten_notify_memory_growth: function ( index ) { + + heap = new Uint8Array( instance.exports.memory.buffer ); + + } + + } + +} + +/** + * ZSTD (Zstandard) decod...
true
Other
mrdoob
three.js
2e2d7e41a10c36ff72b87cf556f3e4a0ad36d5fa.json
Add ZSTDDecoder, add ZSTD support to KTX2Loader.
examples/jsm/loaders/KTX2Loader.js
@@ -40,6 +40,8 @@ import { sRGBEncoding, } from '../../../build/three.module.js'; +import { ZSTDDecoder } from '../libs/zstddec.module.js'; + // Data Format Descriptor (DFD) constants. const DFDModel = { @@ -206,6 +208,9 @@ class KTX2Container { this.basisModule = basisModule; this.arrayBuffer = arrayBuf...
true
Other
mrdoob
three.js
776bd5eb4c05604b28d4653958dbe778c482d003.json
Remove unused code on handtracking examples
examples/webxr_vr_handtracking.html
@@ -26,10 +26,7 @@ var controller1, controller2; var controllerGrip1, controllerGrip2; - var raycaster, intersected = []; - var tempMatrix = new THREE.Matrix4(); - - var controls, group; + var controls; var grabbing = false; var scaling = { @@ -82,45 +79,6 @@ light.shadow.mapSize.set( 4...
true
Other
mrdoob
three.js
776bd5eb4c05604b28d4653958dbe778c482d003.json
Remove unused code on handtracking examples
examples/webxr_vr_handtracking_simple.html
@@ -26,7 +26,7 @@ var controller1, controller2; var controllerGrip1, controllerGrip2; - var controls, group; + var controls; init(); animate(); @@ -69,45 +69,6 @@ light.shadow.mapSize.set( 4096, 4096 ); scene.add( light ); - group = new THREE.Group(); - scene.add( group ); - /*...
true
Other
mrdoob
three.js
331a19ccc3518a2ab46357d7af0ecbb0b0375c98.json
Fix radious sphere on pinch
src/renderers/webxr/WebXRHandController.js
@@ -1,122 +0,0 @@ -import { Object3D } from '../../core/Object3D.js'; -import { SphereBufferGeometry } from '../../geometries/SphereGeometry.js'; -import { MeshStandardMaterial } from '../../materials/MeshStandardMaterial.js'; -import { Mesh } from '../../objects/Mesh.js'; - -function XRHandModel( controller ) { - - Ob...
false
Other
mrdoob
three.js
ac42bb21815b316c93f05c8f6f9dfe44554013dc.json
Introduce joints in WebXRController for hands
src/renderers/webxr/WebXRController.js
@@ -24,6 +24,26 @@ Object.assign( WebXRController.prototype, { this._hand.matrixAutoUpdate = false; this._hand.visible = false; + this._hand.joints = []; + this._hand.inputState = { pinching: false }; + + if ( window.XRHand ) { + + for ( let i = 0; i <= XRHand.LITTLE_PHALANX_TIP; i ++ ) { + + // ...
false
Other
mrdoob
three.js
7dd52e4a5a3fc3aa68c3d69078e780c9b792d881.json
remove log in WebXRManager
src/renderers/webxr/WebXRManager.js
@@ -464,7 +464,6 @@ function WebXRManager( renderer, gl ) { // const inputSources = session.inputSources; - //console.log(inputSources); for ( let i = 0; i < controllers.length; i ++ ) {
false
Other
mrdoob
three.js
e1627bac61539417c4445f7c97986d60647f4213.json
Update package.json (#22218)
package-lock.json
@@ -1,27 +1,27 @@ { "name": "three", - "version": "0.130.1", + "version": "0.131.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "three", - "version": "0.130.1", + "version": "0.131.0", "license": "MIT", "devDependencies": { "@babel/cor...
true
Other
mrdoob
three.js
e1627bac61539417c4445f7c97986d60647f4213.json
Update package.json (#22218)
package.json
@@ -108,14 +108,14 @@ "@babel/plugin-proposal-class-properties": "^7.14.5", "@babel/preset-env": "^7.14.8", "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-node-resolve": "^13.0.2", + "@rollup/plugin-node-resolve": "^13.0.4", "chalk": "^4.1.1", "concurrently": "^6.2.0", "eslint":...
true
Other
mrdoob
three.js
ee1812f926718cdd159943c5e5ef14fc629e5ddc.json
Add support for foveation (#22162)
src/renderers/webxr/WebXRManager.js
@@ -467,6 +467,40 @@ class WebXRManager extends EventDispatcher { }; + this.getFoveation = function () { + + if ( glProjLayer !== null ) { + + return glProjLayer.fixedFoveation; + + } + + if ( glBaseLayer !== null ) { + + return glBaseLayer.fixedFoveation; + + } + + return undefined; + + }; + +...
false
Other
mrdoob
three.js
df5cbb6f40897f82bcdab2ae0459290120c6a982.json
Fix initial material configuration
examples/webgl_materials_envmaps_hdr_nodes.html
@@ -101,16 +101,16 @@ let material = new THREE.MeshStandardMaterial(); material.color = new THREE.Color( 0xffffff ); - material.roughness = params.metalness; - material.metalness = params.roguhness; + material.roughness = params.roughness; + material.metalness = params.metalness; torusMes...
false
Other
mrdoob
three.js
e432081bc1adbff01c8ad7ba32eeb37c89a74eb7.json
fix code style(2)
examples/jsm/renderers/nodes/accessors/CameraNode.js
@@ -69,13 +69,13 @@ class CameraNode extends Node { if ( scope === CameraNode.PROJECTION || scope === CameraNode.VIEW ) { - if ( !inputNode || !inputNode.isMatrix4Node !== true ) { + if ( inputNode === undefined || !inputNode.isMatrix4Node !== true ) { inputNode = new Matrix4Node( null ); }...
false
Other
mrdoob
three.js
d0ca03dc5c3060182693ca2c53b0c1a1005a4ff3.json
fix code style
examples/jsm/renderers/nodes/accessors/CameraNode.js
@@ -69,13 +69,13 @@ class CameraNode extends Node { if ( scope === CameraNode.PROJECTION || scope === CameraNode.VIEW ) { - if ( !inputNode || !inputNode.isMatrix4Node ) { + if ( !inputNode || !inputNode.isMatrix4Node !== true ) { inputNode = new Matrix4Node( null ); } - } else if ( !in...
false
Other
mrdoob
three.js
b12d21696ae12736263dce60200c1fc33e25a128.json
Use HTTPS instead of HTTP.
README.md
@@ -11,8 +11,8 @@ three.js The aim of the project is to create an easy to use, lightweight, 3D library with a default WebGL renderer. The library also provides Canvas 2D, SVG and CSS3D renderers in the examples. -[Examples](http://threejs.org/examples/) &mdash; -[Documentation](http://threejs.org/docs/) &mdash; +[...
true
Other
mrdoob
three.js
b12d21696ae12736263dce60200c1fc33e25a128.json
Use HTTPS instead of HTTP.
docs/index.html
@@ -13,7 +13,7 @@ <div id="panel"> <div id="header"> - <h1><a href="http://threejs.org">three.js</a></h1> + <h1><a href="https://threejs.org">three.js</a></h1> <div id="sections"> <span class="selected">docs</span>
true
Other
mrdoob
three.js
b12d21696ae12736263dce60200c1fc33e25a128.json
Use HTTPS instead of HTTP.
editor/js/Menubar.Help.js
@@ -47,7 +47,7 @@ function MenubarHelp( editor ) { option.setTextContent( strings.getKey( 'menubar/help/about' ) ); option.onClick( function () { - window.open( 'http://threejs.org', '_blank' ); + window.open( 'https://threejs.org', '_blank' ); } ); options.add( option );
true
Other
mrdoob
three.js
b12d21696ae12736263dce60200c1fc33e25a128.json
Use HTTPS instead of HTTP.
examples/webgl_loader_texture_lottie.html
@@ -9,7 +9,7 @@ <body> <div id="info"> - <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> webgl - lottie<br/></br> + <a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> webgl - lottie<br/></br> <input id="scrubber" type="range" value="0" style="width: 300px">...
true
Other
mrdoob
three.js
5922e9215114dc533fa83685dc29532c3c89452e.json
use PositionNode for colors
examples/webgpu_compute.html
@@ -21,7 +21,7 @@ import WebGPUUniformsGroup from './jsm/renderers/webgpu/WebGPUUniformsGroup.js'; import { Vector2Uniform } from './jsm/renderers/webgpu/WebGPUUniform.js'; - import AttributeNode from './jsm/renderers/nodes/core/AttributeNode.js'; + import PositionNode from './jsm/renderers/nodes/accessor...
false
Other
mrdoob
three.js
39fc61d2c4aa2c7db9a0ede6aee1fd4264838bde.json
remove old css prefixes
examples/js/renderers/CSS2DRenderer.js
@@ -92,13 +92,8 @@ THREE.CSS2DRenderer = function () { vector.applyMatrix4( viewProjectionMatrix ); var element = object.element; - var style = 'translate(-50%,-50%) translate(' + ( vector.x * _widthHalf + _widthHalf ) + 'px,' + ( - vector.y * _heightHalf + _heightHalf ) + 'px)'; - - element.style.WebkitT...
true
Other
mrdoob
three.js
39fc61d2c4aa2c7db9a0ede6aee1fd4264838bde.json
remove old css prefixes
examples/js/renderers/CSS3DRenderer.js
@@ -74,7 +74,6 @@ THREE.CSS3DRenderer = function () { var cameraElement = document.createElement( 'div' ); - cameraElement.style.WebkitTransformStyle = 'preserve-3d'; cameraElement.style.transformStyle = 'preserve-3d'; cameraElement.style.pointerEvents = 'none'; @@ -196,7 +195,6 @@ THREE.CSS3DRenderer = fun...
true
Other
mrdoob
three.js
39fc61d2c4aa2c7db9a0ede6aee1fd4264838bde.json
remove old css prefixes
examples/jsm/renderers/CSS2DRenderer.js
@@ -98,13 +98,8 @@ var CSS2DRenderer = function () { vector.applyMatrix4( viewProjectionMatrix ); var element = object.element; - var style = 'translate(-50%,-50%) translate(' + ( vector.x * _widthHalf + _widthHalf ) + 'px,' + ( - vector.y * _heightHalf + _heightHalf ) + 'px)'; - - element.style.WebkitTra...
true
Other
mrdoob
three.js
39fc61d2c4aa2c7db9a0ede6aee1fd4264838bde.json
remove old css prefixes
examples/jsm/renderers/CSS3DRenderer.js
@@ -79,7 +79,6 @@ var CSS3DRenderer = function () { var cameraElement = document.createElement( 'div' ); - cameraElement.style.WebkitTransformStyle = 'preserve-3d'; cameraElement.style.transformStyle = 'preserve-3d'; cameraElement.style.pointerEvents = 'none'; @@ -201,7 +200,6 @@ var CSS3DRenderer = functio...
true
Other
mrdoob
three.js
ab7458e32694ee1c3f7695559db0781d87bd36ec.json
Fix code style in the shader
src/renderers/shaders/ShaderChunk/normalmap_pars_fragment.glsl.js
@@ -34,10 +34,10 @@ export default /* glsl */` vec3 T = q1perp * st0.x + q0perp * st1.x; vec3 B = q1perp * st0.y + q0perp * st1.y; - float det = max( dot(T,T), dot(B,B) ); - float scale = (det == 0.0) ? 0.0 : faceDirection * inversesqrt( det ); + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ...
false
Other
mrdoob
three.js
746f66b295b4190a0c5d5fb305a0ed290e5aa169.json
Add KTX2Exporter (#24102) * KTX2Exporter: Initial commit * KTX2Exporter: Keep relative import
examples/jsm/exporters/KTX2Exporter.js
@@ -0,0 +1,281 @@ +import { + FloatType, + HalfFloatType, + UnsignedByteType, + RGBAFormat, + RGFormat, + RGIntegerFormat, + RedFormat, + RedIntegerFormat, + LinearEncoding, + sRGBEncoding, + DataTexture, + REVISION, +} from 'three'; + +import { + write, + KTX2Container, + KHR_DF_CHANNEL_RGBSDA_ALPHA, + KHR_DF_CHANNEL_...
true
Other
mrdoob
three.js
746f66b295b4190a0c5d5fb305a0ed290e5aa169.json
Add KTX2Exporter (#24102) * KTX2Exporter: Initial commit * KTX2Exporter: Keep relative import
examples/jsm/libs/ktx-parse.module.js
@@ -1 +1 @@ -const t=new Uint8Array([0]),e=[171,75,84,88,32,50,48,187,13,10,26,10];var n,i,s,a,r,o,l,f;!function(t){t[t.NONE=0]="NONE",t[t.BASISLZ=1]="BASISLZ",t[t.ZSTD=2]="ZSTD",t[t.ZLIB=3]="ZLIB"}(n||(n={})),function(t){t[t.BASICFORMAT=0]="BASICFORMAT"}(i||(i={})),function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.ETC1...
true
Other
mrdoob
three.js
d5c49f58ca81b43118d6810a4bacf5289543e40a.json
Update webgl_panorama_cube.html (#22065) * Update webgl_panorama_cube.html * Update webgl_panorama_cube.html * Update webgl_panorama_cube.html
examples/webgl_panorama_cube.html
@@ -73,28 +73,25 @@ } - const imageObj = new Image(); + new THREE.ImageLoader() + .load( atlasImgUrl, ( image ) => { - imageObj.onload = function () { + let canvas, context; + const tileWidth = image.height; - let canvas, context; - const tileWidth = imageObj.height; + f...
false
Other
mrdoob
three.js
8fb030c04113613b41fc63c3db6b698673494063.json
Fix regression in WebXR (#22074) * Fix regression in WebXR * Use WebGLState to set WebXR framebuffer Co-authored-by: Rik Cabanier <cabanier@fb.com>
src/renderers/webxr/WebXRManager.js
@@ -496,7 +496,7 @@ class WebXRManager extends EventDispatcher { const glSubImage = glBinding.getViewSubImage( glProjLayer, view ); - gl.bindFramebuffer( gl.FRAMEBUFFER, glFramebuffer ); + state.bindXRFramebuffer( glFramebuffer ); gl.framebufferTexture2D( gl.FRAMEBUFFER, gl.COLOR_ATTACHMEN...
false
Other
mrdoob
three.js
feb76129726cb2c9a56942e7875b50b6a2330963.json
Add index cache for vao
src/renderers/webgl/WebGLBindingStates.js
@@ -25,9 +25,9 @@ } - updateBuffers = needsUpdate( geometry ); + updateBuffers = needsUpdate( geometry, index ); - if ( updateBuffers ) saveCache( geometry ); + if ( updateBuffers ) saveCache( geometry, index ); } else { @@ -157,13 +157,14 @@ enabledAttributes: enabledAttributes, attrib...
false
Other
mrdoob
three.js
b2ada74c5ca0f9c7178cd13f53784f0cdd8ca9fd.json
keep last 100 lines (instead of first) also added color and prefix for `console.warn` and `console.error`
threejs/resources/threejs-lessons-helper.js
@@ -131,8 +131,6 @@ overflow: 'auto', background: 'rgba(221, 221, 221, 0.9)', }); - var numLinesRemaining = 100; - var added = false; const toggle = document.createElement('div'); let show = false; Object.assign(toggle.style, { @@ -151,36 +149,52 @@ } showHideConsole();...
false
Other
mrdoob
three.js
b5cbff9d54bcdc4797366414e78871c384f5e878.json
add console toggle
threejs/resources/threejs-lessons-helper.js
@@ -133,6 +133,23 @@ }); var numLinesRemaining = 100; var added = false; + const toggle = document.createElement('div'); + let show = false; + Object.assign(toggle.style, { + position: 'absolute', + right: 0, + bottom: 0, + background: '#EEE', + 'max-height': '2ex', + ...
false
Other
mrdoob
three.js
914b48a7b76e291c3d1a4f34514f3a9b9243624e.json
use new technique to keep 3d and scrolling in sync
threejs/lessons/resources/threejs-primitives.js
@@ -393,7 +393,7 @@ function main() { return addElem(parent, 'div', className); } - const renderFuncs = [ + const primRenderFuncs = [ ...[...document.querySelectorAll('[data-primitive]')].map(createPrimitiveDOM), ...[...document.querySelectorAll('[data-primitive-diagram]')].map(createPrimitiveDiag...
true
Other
mrdoob
three.js
914b48a7b76e291c3d1a4f34514f3a9b9243624e.json
use new technique to keep 3d and scrolling in sync
threejs/lessons/threejs-primitives.md
@@ -380,7 +380,7 @@ to use it](threejs-scenegraph.html). flex: 1 1 auto; } #c { - position: fixed; + position: absolute; top: 0; left: 0; width: 100vw;
true
Other
mrdoob
three.js
e95a9252bcd683bd6d58e92f4b214526ca4aa799.json
use TrackballControls instead of OrbitControls Ideally we'd like to spin the object, not the camera.
threejs/lessons/resources/threejs-primitives.js
@@ -393,8 +393,10 @@ function main() { return addElem(parent, 'div', className); } - document.querySelectorAll('[data-primitive]').forEach(createPrimitiveDOM); - document.querySelectorAll('[data-primitive-diagram]').forEach(createPrimitiveDiagram); + const renderFuncs = [ + ...[...document.querySelector...
true
Other
mrdoob
three.js
e95a9252bcd683bd6d58e92f4b214526ca4aa799.json
use TrackballControls instead of OrbitControls Ideally we'd like to spin the object, not the camera.
threejs/lessons/threejs-primitives.md
@@ -338,7 +338,7 @@ to use it](threejs-scenegraph.html). <canvas id="c"></canvas> <script src="../resources/threejs/r93/three.min.js"></script> -<script src="../resources/threejs/r93/js/controls/OrbitControls.js"></script> +<script src="../resources/threejs/r93/js/controls/TrackballControls.js"></script> <script s...
true
Other
mrdoob
three.js
2dfb0c0ad5dec1f8ee02508ed433b136900f8349.json
add primitives to toc
threejs/lessons/toc.html
@@ -3,6 +3,7 @@ <ul> <li><a href="/threejs/lessons/threejs-fundamentals.html">Three.js Fundamentals</a></li> <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> </ul> </ul> <...
false
Other
mrdoob
three.js
fe99d38f51cdc05ac6c564d0881b062453db60e1.json
add link to primitives article
threejs/lessons/threejs-responsive.md
@@ -267,5 +267,5 @@ display and you compare this sample to those above you should notice the edges are more crisp. This article covered a very basic but fundamental topic. Next up lets quickly -go over the basic primitives that three.js provides. +[go over the basic primitives that three.js provides](threejs-primit...
false
Other
mrdoob
three.js
7a9f54c29a9be43c63fa196d715f498bced2a16c.json
add place holder for scene graph article.
threejs/lessons/threejs-scenegraph.md
@@ -0,0 +1,5 @@ +Title: Three.js Scenegraph +Description: What's a scene graph? + +TBD +
false
Other
mrdoob
three.js
cfa3d0792916dadd27758390ce4a4a6187aa14ea.json
add primitives article
threejs/lessons/resources/threejs-primitives.js
@@ -0,0 +1,562 @@ +'use strict'; + +function main() { + + const primitives = { + BoxBufferGeometry: { + create() { + const width = 8; + const height = 8; + const depth = 8; + return new THREE.BoxBufferGeometry(width, height, depth); + }, + }, + CircleBufferGeometry: { + ...
true
Other
mrdoob
three.js
cfa3d0792916dadd27758390ce4a4a6187aa14ea.json
add primitives article
threejs/lessons/threejs-primitives.md
@@ -0,0 +1,390 @@ +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
cfa3d0792916dadd27758390ce4a4a6187aa14ea.json
add primitives article
threejs/threejs-primitives-text.html
@@ -0,0 +1,147 @@ +<!-- 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 - Primitives</title> + <style> + body { + ...
true
Other
mrdoob
three.js
cfa3d0792916dadd27758390ce4a4a6187aa14ea.json
add primitives article
threejs/threejs-primitives.html
@@ -0,0 +1,371 @@ +<!-- 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 - Primitives</title> + <style> + body { + ...
true
Other
mrdoob
three.js
56ad755727a48ec7af915544965cc54c4e52233e.json
fix front page
threejs/lessons/resources/index.css
@@ -5,7 +5,7 @@ body { .lesson-main>* { margin: 1em 0; } -.background { +iframe.background { position: fixed; width: 100vw; height: 100vh;
true
Other
mrdoob
three.js
56ad755727a48ec7af915544965cc54c4e52233e.json
fix front page
threejs/lessons/resources/lesson.css
@@ -386,7 +386,10 @@ pre.prettyprint, code.prettyprint { font-size: 24px; } iframe { - max-width: 95% !important; + max-width: 95%; + } + iframe.background { + max-width: 100%; } }
true
Other
mrdoob
three.js
dec477015c0be1beb36e014c3bd6f52ef4514cc0.json
use inline css for console
threejs/resources/threejs-lessons-helper.js
@@ -118,6 +118,17 @@ function setupConsole() { var parent = document.createElement("div"); parent.className = "console"; + Object.assign(parent.style, { + fontFamily: 'monospace', + fontSize: 'medium', + maxHeight: '50%', + position: 'fixed', + bottom: 0, + left: 0, + ...
false
Other
mrdoob
three.js
3e59cb410279fae5c49b12798ba14acad85d9521.json
allow a 'startPane' parameter to the editor
build/js/build.js
@@ -70,6 +70,16 @@ function replaceParams(str, params) { return template(params); } +function encodeParams(params) { + const values = Object.values(params).filter(v => v); + if (!values.length) { + return ''; + } + return '&' + Object.entries(params).map((kv) => { + return `${encodeURIComponent(kv[0])}=...
true
Other
mrdoob
three.js
3e59cb410279fae5c49b12798ba14acad85d9521.json
allow a 'startPane' parameter to the editor
build/templates/example.template
@@ -1,5 +1,5 @@ <div class="threejs_example_container"> - <iframe class="threejs_example" style="{{width}} {{height}}" src="/threejs/resources/editor.html?url={{{examplePath}}}{{{encodedUrl}}}"></iframe> + <iframe class="threejs_example" style="{{width}} {{height}}" src="/threejs/resources/editor.html?url={{{example...
true
Other
mrdoob
three.js
ff170f9f8f92a69b534bc5776c7b42e988364c9a.json
remove unused code
threejs/resources/editor.js
@@ -234,31 +234,7 @@ function resize() { } function addCORSSupport(js) { - if (/requestCORS/.test(js)) { - return js; - } - - let found = false; - js = js.replace(/^( +)(img|image)(\.src = )(.*?);.*?$/mg, function(match, indent, variable, code, url) { - found = true; - return indent + "requestCORSIfNot...
false
Other
mrdoob
three.js
0d491c61a9463182d1a0df70d61d01ee2e017917.json
add readme for model
threejs/resources/models/mountain_landscape/readme.md
@@ -0,0 +1,2 @@ +This model is licensed [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/) +Author: [elsergio217](https://sketchfab.com/elsergio217)
false
Other
mrdoob
three.js
e683d1910bf61acaa1c8149d12f81e2b5871f4b7.json
Fix typo in webgpu/constants.js (#22795)
examples/jsm/renderers/webgpu/WebGPURenderer.js
@@ -168,7 +168,7 @@ class WebGPURenderer { const swapChain = context.configure( { device: device, - format: GPUTextureFormat.BRGA8Unorm // this is the only valid swap chain format right now (r121) + format: GPUTextureFormat.BGRA8Unorm // this is the only valid swap chain format right now (r121) } ); ...
true