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 | 43cd006f03b87fe479110e1f0bbc1edb24623538.json | Eliminate redundant object creation
Instead of creating a new GC'ed object for each object we traverse,
pre-create the _box similarly to other globals. This is slightly awkward
since this needs to be done after we define the ctor. | src/math/Box3.js | @@ -41,6 +41,8 @@ function Box3( min, max ) {
}
+var _box = new Box3();
+
Object.assign( Box3.prototype, {
isBox3: true,
@@ -257,13 +259,11 @@ Object.assign( Box3.prototype, {
}
- var box = new Box3();
-
- box.copy( geometry.boundingBox );
- box.applyMatrix4( object.matrixWorld );
+ _box.copy(... | false |
Other | mrdoob | three.js | d2bb59bdae63702be9d88418c649ce0312dec916.json | fix decode artefacts | src/renderers/shaders/ShaderChunk/packing.glsl.js | @@ -39,6 +39,7 @@ vec4 encodeHalfRGBA ( vec2 v ) {
}
vec2 decodeHalfRGBA( vec4 v ) {
+ v = floor( v * 255.0 + 0.5 ) / 255.0;
return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
}
| false |
Other | mrdoob | three.js | e8bf2d8eb7444d13d648b8a63f6dafe03b71a7cb.json | Implement support for KHR_mesh_quantization
This change implements support for KHR_mesh_quantization by simply
recognizing the extension as supported. It seems that the extension
works otherwise after various quantization fixes submitted previously
(with the most recent fix including correct morph target handling for
... | examples/js/loaders/GLTFLoader.js | @@ -188,6 +188,10 @@ THREE.GLTFLoader = ( function () {
extensions[ extensionName ] = new GLTFTextureTransformExtension();
break;
+ case EXTENSIONS.KHR_MESH_QUANTIZATION:
+ extensions[ extensionName ] = new GLTFMeshQuantizationExtension();
+ break;
+
default:
if ( ext... | true |
Other | mrdoob | three.js | e8bf2d8eb7444d13d648b8a63f6dafe03b71a7cb.json | Implement support for KHR_mesh_quantization
This change implements support for KHR_mesh_quantization by simply
recognizing the extension as supported. It seems that the extension
works otherwise after various quantization fixes submitted previously
(with the most recent fix including correct morph target handling for
... | examples/jsm/loaders/GLTFLoader.js | @@ -252,6 +252,10 @@ var GLTFLoader = ( function () {
extensions[ extensionName ] = new GLTFTextureTransformExtension();
break;
+ case EXTENSIONS.KHR_MESH_QUANTIZATION:
+ extensions[ extensionName ] = new GLTFMeshQuantizationExtension();
+ break;
+
default:
if ( exten... | true |
Other | mrdoob | three.js | e046703f222d960307088052dde2d55904af431a.json | Update example info ℹ | examples/webvr_6dof_panorama.html | @@ -13,7 +13,7 @@
<div id="info">
<a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> webvr - 360 6DOF panorama<br />
- Written by <a href="https://orfleisher.com" target="_blank" rel="noopener">@juniorxsound</a>. Panorama from <a href="http://www.meryproject.com/" target="_blank" rel="n... | false |
Other | mrdoob | three.js | 3c78098a701094fff84fd70aa2f86a883ec17304.json | Add example to files.js example index 📝 | examples/files.js | @@ -334,7 +334,8 @@ var files = {
"webvr_sculpt",
"webvr_video",
"webvr_vive_paint",
- "webvr_vive_sculpt"
+ "webvr_vive_sculpt",
+ "webvr_6dof_panorama"
],
"physics": [
"webgl_physics_cloth", | false |
Other | mrdoob | three.js | a4a208f5d1903fa898571da631fcc5f2b50836aa.json | Fix lint errors | src/renderers/WebGLRenderer.js | @@ -268,7 +268,7 @@ function WebGLRenderer( parameters ) {
utils = new WebGLUtils( _gl, extensions, capabilities );
- state = new WebGLState( _gl, extensions, capabilities, utils );
+ state = new WebGLState( _gl, extensions, capabilities );
state.scissor( _currentScissor.copy( _scissor ).multiplyScalar( _pi... | true |
Other | mrdoob | three.js | a4a208f5d1903fa898571da631fcc5f2b50836aa.json | Fix lint errors | src/renderers/webgl/WebGLBindingStates.js | @@ -392,7 +392,7 @@ function WebGLBindingStates( gl, extensions, attributes, capabilities ) {
enableAttributeAndDivisor( programAttribute + 2, 1 );
enableAttributeAndDivisor( programAttribute + 3, 1 );
- gl.bindBuffer( _gl.ARRAY_BUFFER, buffer );
+ gl.bindBuffer( gl.ARRAY_BUFFER, buffer );
... | true |
Other | mrdoob | three.js | a4a208f5d1903fa898571da631fcc5f2b50836aa.json | Fix lint errors | src/renderers/webgl/WebGLState.js | @@ -5,7 +5,7 @@
import { NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessEqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceFront, CullFaceBack, CullFaceNone, DoubleSide, BackSide, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, NoBlending, NormalBlending, AddEquation, Sub... | true |
Other | mrdoob | three.js | 78398149bf84a21d381b4c14677c17bb6806c7a2.json | fix spelling and remove typeof #2 | docs/api/en/renderers/WebGLRenderer.html | @@ -473,12 +473,12 @@ <h3>[method:null setScissorTest]( [param:Boolean boolean] )</h3>
<h3>[method:null setOpaqueSort]( [param:Function method] )</h3>
<p>
- Sets the costum opaque sort function for the WebGLRenderLists. Pass null to use the default painterSortStable function.
+ Sets the custom opaque sort fun... | true |
Other | mrdoob | three.js | 78398149bf84a21d381b4c14677c17bb6806c7a2.json | fix spelling and remove typeof #2 | src/renderers/WebGLRenderer.d.ts | @@ -259,12 +259,12 @@ export class WebGLRenderer implements Renderer {
setScissorTest( enable: boolean ): void;
/**
- * Sets the costum opaque sort function for the WebGLRenderLists. Pass null to use the default painterSortStable function.
+ * Sets the custom opaque sort function for the WebGLRenderLists. Pass ... | true |
Other | mrdoob | three.js | 78398149bf84a21d381b4c14677c17bb6806c7a2.json | fix spelling and remove typeof #2 | src/renderers/WebGLRenderer.js | @@ -162,6 +162,8 @@ function WebGLRenderer( parameters ) {
_height = _canvas.height,
_pixelRatio = 1,
+ _opaqueSort = null,
+ _transparentSort = null,
_viewport = new Vector4( 0, 0, _width, _height ),
_scissor = new Vector4( 0, 0, _width, _height ),
@@ -253,8 +255,6 @@ function WebGLRenderer( paramete... | true |
Other | mrdoob | three.js | 78398149bf84a21d381b4c14677c17bb6806c7a2.json | fix spelling and remove typeof #2 | src/renderers/webgl/WebGLRenderLists.js | @@ -130,10 +130,10 @@ function WebGLRenderList() {
}
- function sort( costumOpaqueSort, costumTransparentSort ) {
+ function sort( customOpaqueSort, customTransparentSort ) {
- if ( opaque.length > 1 ) opaque.sort( costumOpaqueSort || painterSortStable );
- if ( transparent.length > 1 ) transparent.sort( cost... | true |
Other | mrdoob | three.js | 5c42600aa4e3dd780071733c2764d87944825b79.json | add more fromArray and toArray function types | src/math/Color.d.ts | @@ -152,8 +152,35 @@ export class Color {
lerp( color: Color, alpha: number ): this;
lerpHSL( color: Color, alpha: number ): this;
equals( color: Color ): boolean;
- fromArray( rgb: number[], offset?: number ): this;
+
+ /**
+ * Sets this color's red, green and blue value from the provided array.
+ * @param arr... | true |
Other | mrdoob | three.js | 5c42600aa4e3dd780071733c2764d87944825b79.json | add more fromArray and toArray function types | src/math/Matrix3.d.ts | @@ -111,10 +111,36 @@ export class Matrix3 implements Matrix {
equals( matrix: Matrix3 ): boolean;
+ /**
+ * Sets the values of this matrix from the provided array.
+ * @param array the source array.
+ * @param offset (optional) offset into the array. Default is 0.
+ */
fromArray( array: number[], offset?: ... | true |
Other | mrdoob | three.js | 5c42600aa4e3dd780071733c2764d87944825b79.json | add more fromArray and toArray function types | src/math/Matrix4.d.ts | @@ -226,10 +226,37 @@ export class Matrix4 implements Matrix {
far: number
): Matrix4;
equals( matrix: Matrix4 ): boolean;
+
+ /**
+ * Sets the values of this matrix from the provided array.
+ * @param array the source array.
+ * @param offset (optional) offset into the array. Default is 0.
+ */
fromArray(... | true |
Other | mrdoob | three.js | 5c42600aa4e3dd780071733c2764d87944825b79.json | add more fromArray and toArray function types | src/math/Quaternion.d.ts | @@ -94,11 +94,36 @@ export class Quaternion {
slerp( qb: Quaternion, t: number ): Quaternion;
equals( v: Quaternion ): boolean;
- fromArray( n: number[] ): Quaternion;
- toArray(): number[];
- fromArray( xyzw: number[], offset?: number ): Quaternion;
- toArray( xyzw?: number[], offset?: number ): number[];
+ /*... | true |
Other | mrdoob | three.js | 5c42600aa4e3dd780071733c2764d87944825b79.json | add more fromArray and toArray function types | src/math/SphericalHarmonics3.d.ts | @@ -15,8 +15,36 @@ export class SphericalHarmonics3 {
equals( sh: SphericalHarmonics3 ): boolean;
copy( sh: SphericalHarmonics3 ): SphericalHarmonics3;
clone(): SphericalHarmonics3;
- fromArray( array: number[] ): SphericalHarmonics3;
- toArray(): number[];
+
+ /**
+ * Sets the values of this spherical harmonics... | true |
Other | mrdoob | three.js | 5c42600aa4e3dd780071733c2764d87944825b79.json | add more fromArray and toArray function types | src/math/SphericalHarmonics3.js | @@ -177,28 +177,32 @@ Object.assign( SphericalHarmonics3.prototype, {
},
- fromArray: function ( array ) {
+ fromArray: function ( array, offset ) {
+
+ if ( offset === undefined ) offset = 0;
var coefficients = this.coefficients;
for ( var i = 0; i < 9; i ++ ) {
- coefficients[ i ].fromArray( arra... | true |
Other | mrdoob | three.js | 5c42600aa4e3dd780071733c2764d87944825b79.json | add more fromArray and toArray function types | src/math/Vector3.d.ts | @@ -256,7 +256,7 @@ export class Vector3 implements Vector {
fromArray( array: number[], offset?: number ): this;
/**
- * Sets this vector's x, y and z value from the provided array-lik.
+ * Sets this vector's x, y and z value from the provided array-like.
* @param array the source array-like.
* @param of... | true |
Other | mrdoob | three.js | 5c42600aa4e3dd780071733c2764d87944825b79.json | add more fromArray and toArray function types | src/math/Vector4.d.ts | @@ -199,7 +199,7 @@ export class Vector4 implements Vector {
/**
* Copies x, y, z and w into the provided array-like.
* @param array array-like to store the vector to.
- * @param offset (optional) optional offset into the array.
+ * @param offset (optional) optional offset into the array-like.
* @return Th... | true |
Other | mrdoob | three.js | 9078d8f56b80a0cc980a85ba950f91ee30f08251.json | Add functions to enable/disable all layers
This reduces the need to access Layers.mask directly when code needs to enable/disable all layers on an object. | docs/api/en/core/Layers.html | @@ -80,6 +80,16 @@ <h3>[method:null toggle]( [param:Integer layer] )</h3>
Toggle membership of *layer*.
</p>
+ <h3>[method:null enableAll]()</h3>
+ <p>
+ Add membership to all layers.
+ </p>
+
+ <h3>[method:null disableAll]()</h3>
+ <p>
+ Remove membership from all layers.
+ </p>
+
<h2>Source</h2>... | true |
Other | mrdoob | three.js | 9078d8f56b80a0cc980a85ba950f91ee30f08251.json | Add functions to enable/disable all layers
This reduces the need to access Layers.mask directly when code needs to enable/disable all layers on an object. | src/core/Layers.d.ts | @@ -10,4 +10,7 @@ export class Layers {
disable( channel: number ): void;
test( layers: Layers ): boolean;
+ enableAll (): void;
+ disableAll (): void;
+
} | true |
Other | mrdoob | three.js | 9078d8f56b80a0cc980a85ba950f91ee30f08251.json | Add functions to enable/disable all layers
This reduces the need to access Layers.mask directly when code needs to enable/disable all layers on an object. | src/core/Layers.js | @@ -38,6 +38,18 @@ Object.assign( Layers.prototype, {
return ( this.mask & layers.mask ) !== 0;
+ },
+
+ enableAll: function () {
+
+ this.mask = 0xffffffff | 0;
+
+ },
+
+ disableAll: function () {
+
+ this.mask = 0;
+
}
} ); | true |
Other | mrdoob | three.js | 709fe8964b13fe3b357142547493c1b9927c92d3.json | remove multiview attribute from renderer | src/renderers/WebGLRenderer.js | @@ -319,8 +319,6 @@ function WebGLRenderer( parameters ) {
var multiview = new WebGLMultiview( _this, _gl );
- this.multiview = multiview;
-
// shadow map
var shadowMap = new WebGLShadowMap( _this, objects, capabilities.maxTextureSize ); | true |
Other | mrdoob | three.js | 709fe8964b13fe3b357142547493c1b9927c92d3.json | remove multiview attribute from renderer | src/renderers/webgl/WebGLMultiview.js | @@ -26,18 +26,6 @@ function WebGLMultiview( renderer, gl ) {
}
- function getNumViews() {
-
- if ( renderTarget && renderer.getRenderTarget() === renderTarget ) {
-
- return renderTarget.numViews;
-
- }
-
- return 0;
-
- }
-
function getCameraArray( camera ) {
if ( camera.isArrayCamera ) return camera... | true |
Other | mrdoob | three.js | 709fe8964b13fe3b357142547493c1b9927c92d3.json | remove multiview attribute from renderer | src/renderers/webgl/WebGLProgram.js | @@ -5,6 +5,7 @@
import { WebGLUniforms } from './WebGLUniforms.js';
import { WebGLShader } from './WebGLShader.js';
import { ShaderChunk } from '../shaders/ShaderChunk.js';
+import { WebGLMultiviewRenderTarget } from '../WebGLMultiviewRenderTarget.js';
import { NoToneMapping, AddOperation, MixOperation, MultiplyOpe... | true |
Other | mrdoob | three.js | 413ec9280fcc3e1722b579be5aa56f03fe35a6cb.json | Add return type to createButton for WebVR typings.
The function can return either a button or an `<a>` element. `HTMLElement` is a simple generalization in case the implementation changes again. | examples/jsm/vr/WebVR.d.ts | @@ -7,5 +7,5 @@ export interface WEBVROptions {
}
export namespace WEBVR {
- export function createButton( renderer: WebGLRenderer, options?: WEBVROptions );
+ export function createButton( renderer: WebGLRenderer, options?: WEBVROptions ): HTMLElement;
} | false |
Other | mrdoob | three.js | bdba8e2af61494aac0b3c2fae7f15248405732b3.json | Fix loading glTF ZIP files in the editor | editor/js/Loader.js | @@ -605,7 +605,7 @@ var Loader = function ( editor ) {
var scene = result.scene;
editor.addAnimation( scene, result.animations );
- editor.execute( new AddObjectCommand( scene ) );
+ editor.execute( new AddObjectCommand( editor, scene ) );
} );
| false |
Other | mrdoob | three.js | 598a1c5b17beee6e01fb889b5f9977fa68607ae3.json | Fix a type description. | examples/jsm/loaders/MMDLoader.d.ts | @@ -20,11 +20,11 @@ export class MMDLoader extends Loader {
parser: object | null;
load(url: string, onLoad: (mesh: SkinnedMesh) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void;
- loadAnimation(url: string, onLoad: (object: SkinnedMesh | AnimationClip) => void... | false |
Other | mrdoob | three.js | 16217d2806980f6be13ebbbac80dfc0312328433.json | add the defintion file of utils | src/utils.d.ts | @@ -0,0 +1,2 @@
+export function arrayMin( array: number[] ): number;
+export function arrayMax( array: number[] ): number;
\ No newline at end of file | false |
Other | mrdoob | three.js | ef78c1b69181c55029ec25be9f4ef87f03a9f0f5.json | Fix minor issues and linter | src/materials/Material.js | @@ -72,7 +72,6 @@ function Material() {
this.toneMapped = true;
this.userData = {};
-
this.needsUpdate = true;
} | true |
Other | mrdoob | three.js | ef78c1b69181c55029ec25be9f4ef87f03a9f0f5.json | Fix minor issues and linter | src/renderers/WebGLRenderer.js | @@ -58,6 +58,7 @@ function WebGLRenderer( parameters ) {
var _canvas = parameters.canvas !== undefined ? parameters.canvas : document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' ),
_context = parameters.context !== undefined ? parameters.context : null,
+
_alpha = parameters.alpha !== undefined ... | true |
Other | mrdoob | three.js | ef78c1b69181c55029ec25be9f4ef87f03a9f0f5.json | Fix minor issues and linter | src/renderers/webgl/WebGLCapabilities.js | @@ -87,7 +87,7 @@ function WebGLCapabilities( gl, extensions, parameters ) {
var maxSamples = isWebGL2 ? gl.getParameter( gl.MAX_SAMPLES ) : 0;
var multiviewExt = extensions.get( 'OVR_multiview2' );
- var multiview = isWebGL2 && ( !! multiviewExt ) && ! gl.getContextAttributes().antialias;
+ var multiview = isWeb... | true |
Other | mrdoob | three.js | ef78c1b69181c55029ec25be9f4ef87f03a9f0f5.json | Fix minor issues and linter | src/renderers/webgl/WebGLMultiview.js | @@ -134,7 +134,7 @@ function WebGLMultiview( renderer, gl ) {
}
- function detachRenderTarget( camera ) {
+ function detachCamera( camera ) {
if ( renderTarget !== renderer.getRenderTarget() ) return;
@@ -201,7 +201,7 @@ function WebGLMultiview( renderer, gl ) {
this.attachCamera = attachCamera;
- th... | true |
Other | mrdoob | three.js | ef78c1b69181c55029ec25be9f4ef87f03a9f0f5.json | Fix minor issues and linter | src/renderers/webgl/WebGLProgram.js | @@ -5,7 +5,6 @@
import { WebGLUniforms } from './WebGLUniforms.js';
import { WebGLShader } from './WebGLShader.js';
import { ShaderChunk } from '../shaders/ShaderChunk.js';
-import { WebGLMultiviewRenderTarget } from '../WebGLMultiviewRenderTarget.js';
import { NoToneMapping, AddOperation, MixOperation, MultiplyOpe... | true |
Other | mrdoob | three.js | d374632473fa476c94acd0c98f769048c28c5cff.json | Remove unused supportMultiview on material | src/materials/Material.js | @@ -71,7 +71,6 @@ function Material() {
this.visible = true;
this.toneMapped = true;
- this.supportsMultiview = true;
this.userData = {};
this.needsUpdate = true; | false |
Other | mrdoob | three.js | 19fb3706a390bd4a5502a27b26c9606407078c1b.json | Fix a type description. | examples/jsm/renderers/WebGLDeferredRenderer.d.ts | @@ -8,9 +8,9 @@ import {
export interface WebGLDeferredRendererParameters {
antialias?: boolean;
cacheKeepAlive?: boolean;
- height?: Vector2;
+ height?: number;
renderer?: WebGLRenderer;
- width?: Vector2;
+ width?: number;
}
export class WebGLDeferredRenderer { | false |
Other | mrdoob | three.js | c52fef3b548ecf7d252850ffaa9a2eaca6b26989.json | parse opacity of material
some model is transparent, so it should parse MAT_TRANSPARENCY, and convert MAT_TRANSPARENCY to material.oapcity | examples/js/loaders/TDSLoader.js | @@ -272,6 +272,12 @@ THREE.TDSLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
material.shininess = shininess;
this.debugMessage( ' Shininess : ' + shininess );
+ } else if ( next === MAT_TRANSPARENCY ) {
+
+ var opacity = this.readWord( data );
+ material.opacity = opacity*... | false |
Other | mrdoob | three.js | 30e24e69a852e9efcdbb7c64e8e30d9370d44e70.json | remove unit tests | test/unit/src/core/BufferAttribute.tests.js | @@ -42,28 +42,6 @@ export default QUnit.module( 'Core', () => {
} );
- QUnit.test( "setArray", ( assert ) => {
-
- var f32a = new Float32Array( [ 1, 2, 3, 4 ] );
- var a = new BufferAttribute( f32a, 2, false );
-
- a.setArray( f32a, 2 );
-
- assert.strictEqual( a.count, 2, "Check item count" );
- asse... | true |
Other | mrdoob | three.js | 30e24e69a852e9efcdbb7c64e8e30d9370d44e70.json | remove unit tests | test/unit/src/core/InterleavedBuffer.tests.js | @@ -49,34 +49,6 @@ export default QUnit.module( 'Core', () => {
} );
- QUnit.test( "setArray", ( assert ) => {
-
- var f32a = new Float32Array( [ 1, 2, 3, 4 ] );
- var f32b = new Float32Array( [] );
- var a = new InterleavedBuffer( f32a, 2, false );
-
- a.setArray( f32a );
-
- assert.strictEqual( a.co... | true |
Other | mrdoob | three.js | 5e2f24c8c64d5e861e101ad380ec0ae5390908c4.json | Fix more indents | examples/js/shaders/DOFMipMapShader.js | @@ -23,8 +23,8 @@ THREE.DOFMipMapShader = {
"void main() {",
- "vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv;",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -42,14 +42,14 @@ THREE.DOFMipMapShader = {... | true |
Other | mrdoob | three.js | 5e2f24c8c64d5e861e101ad380ec0ae5390908c4.json | Fix more indents | examples/js/shaders/DotScreenShader.js | @@ -24,8 +24,8 @@ THREE.DotScreenShader = {
"void main() {",
- "vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv;",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -44,22 +44,22 @@ THREE.DotScreenShader = {... | true |
Other | mrdoob | three.js | 5e2f24c8c64d5e861e101ad380ec0ae5390908c4.json | Fix more indents | examples/js/shaders/FilmShader.js | @@ -39,8 +39,8 @@ THREE.FilmShader = {
"void main() {",
- "vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv;",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -71,31 +71,31 @@ THREE.FilmShader = {
"void ... | true |
Other | mrdoob | three.js | 5e2f24c8c64d5e861e101ad380ec0ae5390908c4.json | Fix more indents | examples/js/shaders/FocusShader.js | @@ -24,8 +24,8 @@ THREE.FocusShader = {
"void main() {",
- "vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv;",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -44,45 +44,45 @@ THREE.FocusShader = {
"v... | true |
Other | mrdoob | three.js | 5e2f24c8c64d5e861e101ad380ec0ae5390908c4.json | Fix more indents | examples/js/shaders/FreiChenShader.js | @@ -21,8 +21,8 @@ THREE.FreiChenShader = {
"void main() {",
- "vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv;",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -55,38 +55,38 @@ THREE.FreiChenShader = {
... | true |
Other | mrdoob | three.js | 8bf4f29237cec182f03ddc4f5b9ece5aa864d4e0.json | Fix some indents | examples/js/shaders/BrightnessContrastShader.js | @@ -23,9 +23,9 @@ THREE.BrightnessContrastShader = {
"void main() {",
- "vUv = uv;",
+ " vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -41,15 +41,15 @@ THREE.Brightne... | true |
Other | mrdoob | three.js | 8bf4f29237cec182f03ddc4f5b9ece5aa864d4e0.json | Fix some indents | examples/js/shaders/ColorCorrectionShader.js | @@ -21,9 +21,9 @@ THREE.ColorCorrectionShader = {
"void main() {",
- "vUv = uv;",
+ " vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -40,8 +40,8 @@ THREE.ColorCorrecti... | true |
Other | mrdoob | three.js | 8bf4f29237cec182f03ddc4f5b9ece5aa864d4e0.json | Fix some indents | examples/js/shaders/ColorifyShader.js | @@ -19,8 +19,8 @@ THREE.ColorifyShader = {
"void main() {",
- "vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv;",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -35,12 +35,12 @@ THREE.ColorifyShader = {
... | true |
Other | mrdoob | three.js | 8bf4f29237cec182f03ddc4f5b9ece5aa864d4e0.json | Fix some indents | examples/js/shaders/ConvolutionShader.js | @@ -31,8 +31,8 @@ THREE.ConvolutionShader = {
"void main() {",
- "vUv = uv - ( ( KERNEL_SIZE_FLOAT - 1.0 ) / 2.0 ) * uImageIncrement;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv - ( ( KERNEL_SIZE_FLOAT - 1.0 ) / 2.0 ) * uImageIncrement;",
+ " gl_Position = ... | true |
Other | mrdoob | three.js | 8bf4f29237cec182f03ddc4f5b9ece5aa864d4e0.json | Fix some indents | examples/js/shaders/CopyShader.js | @@ -19,8 +19,8 @@ THREE.CopyShader = {
"void main() {",
- "vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv;",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
@@ -36,8 +36,8 @@ THREE.CopyShader = {
"void ... | true |
Other | mrdoob | three.js | 8bf4f29237cec182f03ddc4f5b9ece5aa864d4e0.json | Fix some indents | examples/js/shaders/DigitalGlitch.js | @@ -31,8 +31,8 @@ THREE.DigitalGlitch = {
"varying vec2 vUv;",
"void main() {",
- "vUv = uv;",
- "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+ " vUv = uv;",
+ " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
].join( "\n" ),
@@ -55,47... | true |
Other | mrdoob | three.js | 9a2a09ac068d1eae93668c2eba2bca431be4b5b8.json | fix prem roughness | examples/jsm/nodes/misc/TextureCubeNode.js | @@ -84,7 +84,7 @@ TextureCubeNode.prototype.generate = function ( builder, output ) {
if ( builder.context.bias ) {
- builder.context.bias.setTexture( this );
+ builder.context.bias.setTexture( this.value );
}
| true |
Other | mrdoob | three.js | 9a2a09ac068d1eae93668c2eba2bca431be4b5b8.json | fix prem roughness | examples/jsm/nodes/misc/TextureCubeUVNode.js | @@ -171,7 +171,7 @@ TextureCubeUVNode.prototype.generate = function ( builder, output ) {
var textureCubeUV = builder.include( TextureCubeUVNode.Nodes.textureCubeUV );
- var biasNode = this.bias || builder.context.bias;
+ var biasNode = this.bias || builder.context.roughness;
return builder.format( textur... | true |
Other | mrdoob | three.js | 9a2a09ac068d1eae93668c2eba2bca431be4b5b8.json | fix prem roughness | examples/jsm/nodes/utils/MaxMIPLevelNode.js | @@ -26,7 +26,9 @@ Object.defineProperties( MaxMIPLevelNode.prototype, {
if ( this.maxMIPLevel === 0 ) {
- var image = this.texture.value.image ? this.texture.value.image[ 0 ] : undefined;
+ var image = this.texture.value.image;
+
+ if ( Array.isArray( image ) ) image = image[ 0 ];
this.maxMIPLev... | true |
Other | mrdoob | three.js | e84a71ab6664a43cf508d3056f07faea68dac4bc.json | add indent rule for typescript | package.json | @@ -32,7 +32,14 @@
"@typescript-eslint"
],
"rules": {
- "@typescript-eslint/no-unused-vars": 1
+ "@typescript-eslint/no-unused-vars": 1,
+ "@typescript-eslint/indent": [
+ "error",
+ "tab",
+ {
+ "SwitchCase": 1
+ }
+ ]
}
},
"scripts":... | false |
Other | mrdoob | three.js | 75435b9b08cd7eebb25394ae45b3f888dd001027.json | fix lint error | src/renderers/webgl/WebGLLights.js | @@ -355,7 +355,7 @@ function WebGLLights() {
hash.hemiLength = hemiLength;
hash.shadowsLength = shadows.length;
- hash.value++;
+ hash.value ++;
}
| false |
Other | mrdoob | three.js | d1e8efae1cec770c317015f95319eb227d49db9a.json | use new hash value | src/renderers/WebGLRenderer.js | @@ -1463,20 +1463,10 @@ function WebGLRenderer( parameters ) {
releaseMaterialProgramReference( material );
} else if ( lightsHash.stateID !== lightsStateHash.stateID ||
- lightsHash.directionalLength !== lightsStateHash.directionalLength ||
- lightsHash.pointLength !== lightsStateHash.pointLength ||
- l... | true |
Other | mrdoob | three.js | d1e8efae1cec770c317015f95319eb227d49db9a.json | use new hash value | src/renderers/webgl/WebGLLights.js | @@ -117,7 +117,8 @@ function WebGLLights() {
spotLength: - 1,
rectAreaLength: - 1,
hemiLength: - 1,
- shadowsLength: - 1
+ shadowsLength: - 1,
+ value: 0
},
ambient: [ 0, 0, 0 ],
@@ -331,19 +332,32 @@ function WebGLLights() {
state.ambient[ 1 ] = g;
state.ambient[ 2 ] = b;
- state.dir... | true |
Other | mrdoob | three.js | e879da10e2ccc9d05200c9f36259638e3b02ac8a.json | fix lgtm error | examples/js/renderers/WebGLDeferredRenderer.js | @@ -606,7 +606,7 @@ THREE.WebGLDeferredRenderer = function ( parameters ) {
}
- updateDeferredColorUniforms( renderer, scene, camera, geometry, material, group );
+ updateDeferredColorUniforms( renderer, scene, camera, geometry, material );
material.uniforms.samplerLight.value = _compLight.renderTarget2.t... | false |
Other | mrdoob | three.js | 75e66cdfecf52be218a07a055e12be5bcc698618.json | Add setNumViews() to WebGLMultiview | src/renderers/WebGLMultiviewRenderTarget.js | @@ -30,6 +30,19 @@ WebGLMultiviewRenderTarget.prototype = Object.assign( Object.create( WebGLRender
return this;
+ },
+
+ setNumViews: function ( numViews ) {
+
+ if ( this.numViews !== numViews ) {
+
+ this.numViews = numViews;
+ this.dispose();
+
+ }
+
+ return this;
+
}
} ); | true |
Other | mrdoob | three.js | 75e66cdfecf52be218a07a055e12be5bcc698618.json | Add setNumViews() to WebGLMultiview | src/renderers/WebGLRenderer.js | @@ -1242,9 +1242,9 @@ function WebGLRenderer( parameters ) {
state.setPolygonOffset( false );
- if ( this.multiview.isEnabled() ) {
+ if ( multiview.isEnabled() ) {
- this.multiview.detachRenderTarget( camera );
+ multiview.detachRenderTarget( camera );
}
| true |
Other | mrdoob | three.js | 75e66cdfecf52be218a07a055e12be5bcc698618.json | Add setNumViews() to WebGLMultiview | src/renderers/webgl/WebGLMultiview.js | @@ -11,44 +11,42 @@ function WebGLMultiview( renderer, requested, options ) {
options = Object.assign( {}, { debug: false }, options );
+ var DEFAULT_NUMVIEWS = 2;
var gl = renderer.context;
var canvas = renderer.domElement;
var capabilities = renderer.capabilities;
var properties = renderer.properties;
... | true |
Other | mrdoob | three.js | 75e66cdfecf52be218a07a055e12be5bcc698618.json | Add setNumViews() to WebGLMultiview | src/renderers/webgl/WebGLTextures.js | @@ -1024,11 +1024,11 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
ext.framebufferTextureMultiviewOVR( _gl.FRAMEBUFFER, _gl.DEPTH_STENCIL_ATTACHMENT, depthStencilTexture, 0, 0, numViews );
var viewFramebuffers = new Array( numViews );
- for ( var viewIndex = 0; vi... | true |
Other | mrdoob | three.js | ffc4b96b51fa5709d93c7a5bdbef1b80d5e5f720.json | Add WebGL multiple views with multiview example | examples/files.js | @@ -201,6 +201,7 @@ var files = {
"webgl_multiple_renderers",
"webgl_multiple_scenes_comparison",
"webgl_multiple_views",
+ "webvr_multiple_views_multiview",
"webgl_nearestneighbour",
"webgl_panorama_cube",
"webgl_panorama_dualfisheye", | true |
Other | mrdoob | three.js | ffc4b96b51fa5709d93c7a5bdbef1b80d5e5f720.json | Add WebGL multiple views with multiview example | examples/webgl_multiple_views_multiview.html | @@ -0,0 +1,294 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js performance - animation</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+ <style>
+ body {
+ font-family: Monospace;
+ background-col... | true |
Other | mrdoob | three.js | 4093be22f8061f7bcd6c9fd564f83d0ee0eb0846.json | Add modelview and normalview matrices | src/renderers/WebGLRenderer.js | @@ -1461,8 +1461,16 @@ function WebGLRenderer( parameters ) {
object.onBeforeRender( _this, scene, camera, geometry, material, group );
currentRenderState = renderStates.get( scene, _currentArrayCamera || camera );
- object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
- o... | true |
Other | mrdoob | three.js | 4093be22f8061f7bcd6c9fd564f83d0ee0eb0846.json | Add modelview and normalview matrices | src/renderers/webgl/WebGLMultiview.js | @@ -3,6 +3,8 @@
*/
import { WebGLRenderTarget } from '../WebGLRenderTarget.js';
+import { Matrix3 } from '../../math/Matrix3.js';
+import { Matrix4 } from '../../math/Matrix4.js';
function WebGLMultiview( requested, gl, canvas, extensions, capabilities, properties ) {
@@ -24,7 +26,6 @@ function WebGLMultiview... | true |
Other | mrdoob | three.js | 4093be22f8061f7bcd6c9fd564f83d0ee0eb0846.json | Add modelview and normalview matrices | src/renderers/webgl/WebGLProgram.js | @@ -431,11 +431,13 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters,
'uniform vec3 cameraPosition;',
material.supportsMultiview && renderer.multiview.isEnabled() ? [
- 'uniform mat4 modelViewMatrix;',
- 'uniform mat3 normalMatrix;',
+ 'uniform mat4 modelViewMatrices[... | true |
Other | mrdoob | three.js | b7913214ec2394dde1499cdc7255f494769fcb38.json | Add number of objects parameter on multiview demo | examples/webvr_ballshooter_multiview.html | @@ -112,9 +112,20 @@
}
+ function addNumLink( value ) {
+
+ return `<a href="?num=${ value }&${!multiview ? '' : 'enableMultiview'}">${ value }</a>`;
+
+ }
+
// @todo Change enabled for requested and check renderer.vr.multiview
- info.innerHTML = '<b>OVR_multiview2</b> demo<br/>requested:... | false |
Other | mrdoob | three.js | 24302ae5e9613dbe0d5de4a206d655870716dcb5.json | Add multiview status on example | examples/webvr_ballshooter_multiview.html | @@ -44,23 +44,12 @@
animate();
function init() {
- const urlParams = new URLSearchParams(window.location.search);
- const multiview = urlParams.has('enableMultiview');
container = document.createElement( 'div' );
document.body.appendChild( container );
- var info = document.crea... | true |
Other | mrdoob | three.js | 24302ae5e9613dbe0d5de4a206d655870716dcb5.json | Add multiview status on example | src/renderers/WebGLRenderer.js | @@ -59,7 +59,7 @@ function WebGLRenderer( parameters ) {
var _canvas = parameters.canvas !== undefined ? parameters.canvas : document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' ),
_context = parameters.context !== undefined ? parameters.context : null,
- _multiview = parameters.multiview !== unde... | true |
Other | mrdoob | three.js | 24302ae5e9613dbe0d5de4a206d655870716dcb5.json | Add multiview status on example | src/renderers/webgl/WebGLMultiview.js | @@ -1,3 +1,7 @@
+/**
+ * @author fernandojsg / http://fernandojsg.com
+ */
+
function WebGLMultiview( requested, gl, canvas, extensions, capabilities ) {
this.isAvailable = function () { | true |
Other | mrdoob | three.js | 24302ae5e9613dbe0d5de4a206d655870716dcb5.json | Add multiview status on example | src/renderers/webgl/WebGLProgram.js | @@ -432,10 +432,10 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters,
renderer.multiviewEnabled ? [
'uniform mat4 modelViewMatrix;',
- 'uniform mat4 projectionMatrices[2];',
'uniform mat3 normalMatrix;',
-
'uniform mat4 viewMatrices[2];',
+ 'uniform mat4 proje... | true |
Other | mrdoob | three.js | d7a2400097fc9c9698641839e97020d09a8f0134.json | Keep existing properties in object.userData | examples/js/loaders/GLTFLoader.js | @@ -1299,7 +1299,7 @@ THREE.GLTFLoader = ( function () {
if ( typeof gltfDef.extras === 'object' ) {
- object.userData = gltfDef.extras;
+ object.userData = Object.assign(object.userData, gltfDef.extras);
} else {
| false |
Other | mrdoob | three.js | c0beca7103cd7c636af7c5afda1d9e0bd61f3547.json | Fix the inversion | examples/js/loaders/LDrawLoader.js | @@ -1132,6 +1132,20 @@ THREE.LDrawLoader = ( function () {
}
+ // If the scale of the object is negated then the triangle winding order
+ // needs to be flipped.
+ var matrix = currentParseScope.matrix;
+ if (
+ matrix.determinant() < 0 && (
+ scop... | false |
Other | mrdoob | three.js | 3e745a8acc4b92f3d93bdcf4ac779e5be3d5f5b5.json | Add example options for hiding and showing lines | examples/webgl_loader_ldraw.html | @@ -109,7 +109,9 @@
guiData = {
modelFileName: modelFileList[ 'Car' ],
envMapActivated: false,
- separateObjects: false
+ separateObjects: false,
+ displayLines: true,
+ optionalLines: false
};
gui = new dat.GUI();
@@ -134,6 +136,17 @@
} );
+ gui.add( guiData, 'd... | false |
Other | mrdoob | three.js | f26d0adfc6c433f28525edacd958597a1e49184b.json | Fix separate objects | examples/js/loaders/LDrawLoader.js | @@ -273,6 +273,14 @@ THREE.LDrawLoader = ( function () {
var parentParseScope = scope.getParentParseScope();
+ // Set current matrix
+ if ( subobject ) {
+
+ parseScope.currentMatrix.multiplyMatrices( parentParseScope.currentMatrix, subobject.matrix );
+ parseScope.matrix = subobject.matrix.clone... | false |
Other | mrdoob | three.js | 0360f30b550f1b40d6c6e838324b2a18ee972768.json | Update WebGLRenderer docs (build in -> built in)
As stated in title, "build in" appears to be a mistake and should be "built in" | docs/api/en/renderers/WebGLRenderer.html | @@ -425,7 +425,7 @@ <h3>[method:null renderBufferImmediate]( [param:Object3D object], [param:shaderp
<h3>[method:null setAnimationLoop]( [param:Function callback] )</h3>
<p>[page:Function callback] — The function will be called every available frame. If `null` is passed it will stop any already ongoing animatio... | false |
Other | mrdoob | three.js | 0874f22ba084ac82f0bf4e9395e714d01cd172a6.json | Add bevelOffset to type definitions. | src/geometries/ExtrudeGeometry.d.ts | @@ -13,6 +13,7 @@ export interface ExtrudeGeometryOptions {
bevelEnabled?: boolean;
bevelThickness?: number;
bevelSize?: number;
+ bevelOffset?: number;
bevelSegments?: number;
extrudePath?: CurvePath<Vector3>;
UVGenerator?: UVGenerator; | true |
Other | mrdoob | three.js | 0874f22ba084ac82f0bf4e9395e714d01cd172a6.json | Add bevelOffset to type definitions. | src/geometries/TextGeometry.d.ts | @@ -10,6 +10,7 @@ export interface TextGeometryParameters {
bevelEnabled?: boolean;
bevelThickness?: number;
bevelSize?: number;
+ bevelOffset?: number;
bevelSegments?: number;
}
@@ -24,6 +25,7 @@ export class TextBufferGeometry extends ExtrudeBufferGeometry {
bevelEnabled: boolean;
bevelThick... | true |
Other | mrdoob | three.js | f4fb49e3d5b6d738baf367246f5fc83f86a9828d.json | Remove incorrect comment about lambert material | examples/js/loaders/LDrawLoader.js | @@ -859,7 +859,7 @@ THREE.LDrawLoader = ( function () {
case LDrawLoader.FINISH_TYPE_RUBBER:
- // Rubber is best simulated with Lambert
+ // Rubber finish
material = new THREE.MeshStandardMaterial( { color: colour, roughness: 0.9, metalness: 0 } );
canHaveEnvMap = false;
break; | false |
Other | mrdoob | three.js | 672258ec1dcaf18a809d1b2b52628540f1290ee7.json | Add .toJSON to BufferAttribute | src/core/BufferAttribute.js | @@ -319,6 +319,16 @@ Object.assign( BufferAttribute.prototype, {
return new this.constructor( this.array, this.itemSize ).copy( this );
+ },
+
+ toJSON: function() {
+
+ return {
+ itemSize: this.itemSize,
+ type: this.array.constructor.name,
+ array: Array.prototype.slice.call( this.array ),
+ normaliz... | true |
Other | mrdoob | three.js | 672258ec1dcaf18a809d1b2b52628540f1290ee7.json | Add .toJSON to BufferAttribute | src/core/BufferGeometry.js | @@ -1063,12 +1063,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
var attribute = attributes[ key ];
- var attributeData = {
- itemSize: attribute.itemSize,
- type: attribute.array.constructor.name,
- array: Array.prototype.slice.call( attribute.array ),
- nor... | true |
Other | mrdoob | three.js | 672258ec1dcaf18a809d1b2b52628540f1290ee7.json | Add .toJSON to BufferAttribute | src/core/InstancedBufferAttribute.js | @@ -36,6 +36,18 @@ InstancedBufferAttribute.prototype = Object.assign( Object.create( BufferAttribu
return this;
+ },
+
+ toJSON: function () {
+
+ var data = BufferAttribute.prototype.toJSON.call( this );
+
+ data.meshPerAttribute = this.meshPerAttribute;
+
+ data.isInstancedBufferAttribute = true;
+
+ retu... | true |
Other | mrdoob | three.js | 480fd36a21768b6524e8ff24d6f47c4b41e4398a.json | fix box3 example | docs/api/en/math/Box3.html | @@ -20,25 +20,19 @@ <h2>Example</h2>
<code>
// Creating the object whose bounding box we want to compute
- var sphereGeom = new THREE.SphereGeometry();
var sphereObject = new THREE.Mesh(
- sphereGeom,
+ new THREE.SphereGeometry(),
new THREE.MeshBasicMaterial( 0xff0000 )
);
-
// Creating th... | false |
Other | mrdoob | three.js | 2af956b1a50cfe66bdd5e324009e1eb5f133f349.json | remove unused code | examples/webgl_materials_compile.html | @@ -58,7 +58,6 @@
var frame = new NodeFrame();
var teapot;
var controls;
- var rtTexture, rtMaterial;
var meshes = [];
document.getElementById( "preload" ).addEventListener( 'click', function () {
@@ -151,20 +150,6 @@
if ( mesh.material ) mesh.material.dispose();
- if ( rtTexture ) {... | false |
Other | mrdoob | three.js | 898020bebbf2c15a2d7734813d0c4aaa05f00f96.json | Avoid unnecessary instantiation of objects | examples/js/postprocessing/OutlinePass.js | @@ -67,10 +67,10 @@ THREE.OutlinePass = function ( resolution, scene, camera, selectedObjects ) {
var MAX_EDGE_GLOW = 4;
this.separableBlurMaterial1 = this.getSeperableBlurMaterial( MAX_EDGE_THICKNESS );
- this.separableBlurMaterial1.uniforms[ "texSize" ].value = new THREE.Vector2( resx, resy );
+ this.separableB... | true |
Other | mrdoob | three.js | 898020bebbf2c15a2d7734813d0c4aaa05f00f96.json | Avoid unnecessary instantiation of objects | examples/jsm/postprocessing/OutlinePass.js | @@ -87,10 +87,10 @@ var OutlinePass = function ( resolution, scene, camera, selectedObjects ) {
var MAX_EDGE_GLOW = 4;
this.separableBlurMaterial1 = this.getSeperableBlurMaterial( MAX_EDGE_THICKNESS );
- this.separableBlurMaterial1.uniforms[ "texSize" ].value = new Vector2( resx, resy );
+ this.separableBlurMater... | true |
Other | mrdoob | three.js | 90d0d0ed60e1d33fbde0babb28741e6e22ae4f11.json | reduce heap use if WebGL2 partial buffer update. | src/renderers/WebGLRenderer.js | @@ -278,7 +278,7 @@ function WebGLRenderer( parameters ) {
info = new WebGLInfo( _gl );
properties = new WebGLProperties();
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info );
- attributes = new WebGLAttributes( _gl );
+ attributes = new WebGLAttributes( _gl, capabi... | true |
Other | mrdoob | three.js | 90d0d0ed60e1d33fbde0babb28741e6e22ae4f11.json | reduce heap use if WebGL2 partial buffer update. | src/renderers/webgl/WebGLAttributes.d.ts | @@ -1,9 +1,10 @@
+import { WebGLCapabilities } from "./WebGLCapabilities";
import { BufferAttribute } from "../../core/BufferAttribute";
import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute";
export class WebGLAttributes {
- constructor( gl: WebGLRenderingContext | WebGL2RenderingCon... | true |
Other | mrdoob | three.js | 90d0d0ed60e1d33fbde0babb28741e6e22ae4f11.json | reduce heap use if WebGL2 partial buffer update. | src/renderers/webgl/WebGLAttributes.js | @@ -2,7 +2,7 @@
* @author mrdoob / http://mrdoob.com/
*/
-function WebGLAttributes( gl ) {
+function WebGLAttributes( gl, capabilities ) {
var buffers = new WeakMap();
@@ -78,8 +78,17 @@ function WebGLAttributes( gl ) {
} else {
- gl.bufferSubData( bufferType, updateRange.offset * array.BYTES_PER_E... | true |
Other | mrdoob | three.js | 39a1ec8b9e407a942f434037470418db17a748b9.json | Update broken URL in comments. | examples/js/curves/CurveExtras.js | @@ -8,7 +8,7 @@
* http://en.wikipedia.org/wiki/Viviani%27s_curve
* http://mathdl.maa.org/images/upload_library/23/stemkoski/knots/page4.html
* http://www.mi.sanu.ac.rs/vismath/taylorapril2011/Taylor.pdf
- * http://prideout.net/blog/?p=44
+ * https://prideout.net/blog/old/blog/index.html@p=44.html
*/
THREE.Cu... | true |
Other | mrdoob | three.js | 39a1ec8b9e407a942f434037470418db17a748b9.json | Update broken URL in comments. | examples/jsm/curves/CurveExtras.js | @@ -8,7 +8,7 @@
* http://en.wikipedia.org/wiki/Viviani%27s_curve
* http://mathdl.maa.org/images/upload_library/23/stemkoski/knots/page4.html
* http://www.mi.sanu.ac.rs/vismath/taylorapril2011/Taylor.pdf
- * http://prideout.net/blog/?p=44
+ * https://prideout.net/blog/old/blog/index.html@p=44.html
*/
import { | true |
Other | mrdoob | three.js | 39a1ec8b9e407a942f434037470418db17a748b9.json | Update broken URL in comments. | src/geometries/ParametricGeometry.js | @@ -3,7 +3,7 @@
* @author Mugen87 / https://github.com/Mugen87
*
* Parametric Surfaces Geometry
- * based on the brilliant article by @prideout http://prideout.net/blog/?p=44
+ * based on the brilliant article by @prideout https://prideout.net/blog/old/blog/index.html@p=44.html
*/
import { Geometry } from '.... | true |
Other | mrdoob | three.js | 14d990849c82b70dcd87dfa828645fae2052ffd1.json | Revert the incorrect fix #18376 | src/renderers/webgl/WebGLProgram.d.ts | @@ -15,8 +15,8 @@ export class WebGLProgram {
cacheKey: string; // unique identifier for this program, used for looking up compiled programs from cache.
usedTimes: number;
program: any;
- vertexShader: string;
- fragmentShader: string;
+ vertexShader: WebGLShader;
+ fragmentShader: WebGLShader;
numMultiviewView... | false |
Other | mrdoob | three.js | e7f316c7a7cc0262e1e58ce485d60dc3112cf769.json | Add reference to issue | src/renderers/webgl/WebGLTextures.js | @@ -1133,7 +1133,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
_gl.blitFramebuffer( 0, 0, width, height, 0, 0, width, height, mask, _gl.NEAREST );
- _gl.bindFramebuffer( _gl.FRAMEBUFFER, renderTargetProperties.__webglMultisampledFramebuffer );
+ _gl.bindFramebuffer... | false |
Other | mrdoob | three.js | bf1b3f8f1c8cf265c9e47e5d45ef17b2f8c5b502.json | Update jsfiddle with working cdn
RawGit has shut down, and because of this the link in our readme no longer works. This PR migrates the jsfiddle example to use jsDelivr instead. | README.md | @@ -64,7 +64,7 @@ function animate() {
}
```
-If everything went well you should see [this](https://jsfiddle.net/f2Lommf5/).
+If everything went well you should see [this](https://jsfiddle.net/3hkq1L4s/).
### Change log ###
| false |
Other | mrdoob | three.js | 91e2f1108de3a0ffc7671165752e6a6e188d4e8a.json | Fix bug preventing planes from rendering | examples/webgl_clipping_advanced.html | @@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <title>three.js webgl - clipping planes</title>
+ <title>three.js webgl - clipping planes - advanced</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link t... | false |
Other | mrdoob | three.js | d64351575ab16ebd4aa86211f1897760d9bf04be.json | Upgrade dev dependencies. | examples/jsm/csm/CSMHelper.js | @@ -83,15 +83,15 @@ class CSMHelper extends Group {
this.scale.copy( camera.scale );
this.updateMatrixWorld( true );
- while( cascadeLines.length > cascades ) {
+ while ( cascadeLines.length > cascades ) {
this.remove( cascadeLines.pop() );
this.remove( cascadePlanes.pop() );
this.remove( shadow... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.