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 | 3f76d21017f2a4c985f4edd44bb87c1eaddb504f.json | remove redundant parameter from WebGLProgram(s) | src/renderers/WebGLRenderer.js | @@ -288,7 +288,7 @@ function WebGLRenderer( parameters ) {
geometries = new WebGLGeometries( _gl, attributes, info );
objects = new WebGLObjects( geometries, info );
morphtargets = new WebGLMorphtargets( _gl );
- programCache = new WebGLPrograms( _this, extensions, capabilities, textures );
+ programCache = ... | true |
Other | mrdoob | three.js | 3f76d21017f2a4c985f4edd44bb87c1eaddb504f.json | remove redundant parameter from WebGLProgram(s) | src/renderers/webgl/WebGLProgram.d.ts | @@ -3,7 +3,6 @@ import { ShaderMaterial } from './../../materials/ShaderMaterial';
import { WebGLShader } from './WebGLShader';
import { WebGLCapabilities } from './WebGLCapabilities';
import { WebGLExtensions } from './WebGLExtensions';
-import { WebGLTextures } from './WebGLTextures';
import { WebGLUniforms } fro... | true |
Other | mrdoob | three.js | 3f76d21017f2a4c985f4edd44bb87c1eaddb504f.json | remove redundant parameter from WebGLProgram(s) | src/renderers/webgl/WebGLProgram.js | @@ -236,7 +236,7 @@ function unrollLoops( string ) {
}
-function WebGLProgram( renderer, extensions, code, material, shader, parameters, capabilities, textures ) {
+function WebGLProgram( renderer, extensions, code, material, shader, parameters, capabilities ) {
var gl = renderer.context;
@@ -705,7 +705,7 @@... | true |
Other | mrdoob | three.js | 3f76d21017f2a4c985f4edd44bb87c1eaddb504f.json | remove redundant parameter from WebGLProgram(s) | src/renderers/webgl/WebGLPrograms.d.ts | @@ -2,12 +2,11 @@ import { WebGLRenderer } from './../WebGLRenderer';
import { WebGLProgram } from './WebGLProgram';
import { WebGLCapabilities } from './WebGLCapabilities';
import { WebGLExtensions } from './WebGLExtensions';
-import { WebGLTextures } from './WebGLTextures';
import { ShaderMaterial } from './../..... | true |
Other | mrdoob | three.js | 3f76d21017f2a4c985f4edd44bb87c1eaddb504f.json | remove redundant parameter from WebGLProgram(s) | src/renderers/webgl/WebGLPrograms.js | @@ -5,7 +5,7 @@
import { BackSide, DoubleSide, CubeUVRefractionMapping, CubeUVReflectionMapping, GammaEncoding, LinearEncoding, ObjectSpaceNormalMap } from '../../constants.js';
import { WebGLProgram } from './WebGLProgram.js';
-function WebGLPrograms( renderer, extensions, capabilities, textures ) {
+function WebG... | true |
Other | mrdoob | three.js | 5c97a30a6e4101d7ee19d128a05b7d35ede2f3be.json | move error checking and display | src/renderers/webgl/WebGLProgram.js | @@ -9,6 +9,20 @@ import { NoToneMapping, AddOperation, MixOperation, MultiplyOperation, Equirecta
var programIdCount = 0;
+function addLineNumbers( string ) {
+
+ var lines = string.split( '\n' );
+
+ for ( var i = 0; i < lines.length; i ++ ) {
+
+ lines[ i ] = ( i + 1 ) + ': ' + lines[ i ];
+
+ }
+
+ return line... | true |
Other | mrdoob | three.js | 5c97a30a6e4101d7ee19d128a05b7d35ede2f3be.json | move error checking and display | src/renderers/webgl/WebGLShader.js | @@ -2,49 +2,15 @@
* @author mrdoob / http://mrdoob.com/
*/
-function addLineNumbers( string ) {
-
- var lines = string.split( '\n' );
-
- for ( var i = 0; i < lines.length; i ++ ) {
-
- lines[ i ] = ( i + 1 ) + ': ' + lines[ i ];
-
- }
-
- return lines.join( '\n' );
-
-}
-
-function WebGLShader( gl, type, string... | true |
Other | mrdoob | three.js | 81ac461ae2f4b413455fcf30685d73be38526fc7.json | fix info on example | examples/webgl_postprocessing_unreal_bloom_selective.html | @@ -37,7 +37,7 @@
<div id="container"></div>
<div id="info">
- <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> Click on a box to toggle bloom<br>By <a href="http://github.com/Temdog007" target="_blank" rel="noopener">Temdog007</a>
+ <a href="http://threejs.org" target="_blank" rel="... | false |
Other | mrdoob | three.js | e78e43f96f6f5f980ea8f7f392ac9023cdb1cc88.json | Add styles for inline code tags | docs/page.css | @@ -92,7 +92,7 @@ body {
table,
pre,
-code {
+code:not(.inline) {
margin-left: -24px;
margin-right: -24px;
margin-top: 20px;
@@ -133,6 +133,13 @@ code {
box-sizing: border-box;
}
+code.inline {
+ display: inline-block;
+ vertical-align: middle;
+ border-radius: 4px;
+ padding: 2px 5px;
+}
+
iframe {
w... | false |
Other | mrdoob | three.js | 04b554e8abdab7e3d5494642c84f4cf139be7b0e.json | Prevent pointer events on info div | examples/main.css | @@ -10,6 +10,7 @@ body {
a {
color: #ff0;
text-decoration: none;
+ pointer-events: auto;
}
a:hover {
@@ -36,6 +37,7 @@ canvas {
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
+ pointer-events: none;
z-index: 1; /* TODO Solve this in HTML */
}
| false |
Other | mrdoob | three.js | 6479be2b6154079618547f3741afb424ff709e4c.json | sync those pages with En doc | docs/api/zh/constants/Textures.html | @@ -84,32 +84,32 @@ <h2>缩小滤镜
Minification Filters</h2>
<code>
THREE.NearestFilter
- THREE.NearestMipMapNearestFilter
- THREE.NearestMipMapLinearFilter
+ THREE.NearestMipmapNearestFilter
+ THREE.NearestMipmapLinearFilter
THREE.LinearFilter
- THREE.LinearMipMapNearestFilter
- THREE.LinearMipMapLinearFilt... | true |
Other | mrdoob | three.js | 6479be2b6154079618547f3741afb424ff709e4c.json | sync those pages with En doc | docs/api/zh/core/Geometry.html | @@ -318,7 +318,9 @@ <h3>[method:Geometry scale] ( [param:Float x], [param:Float y], [param:Float z]
</p>
<h3>[method:JSON toJSON] ( )</h3>
- <p> 将 Geometry 对象数据转为 JSON 格式。</p>
+ <p> 将 Geometry 对象转为 JSON 格式。<br />
+ 将几何体转换为 three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 J... | true |
Other | mrdoob | three.js | 6479be2b6154079618547f3741afb424ff709e4c.json | sync those pages with En doc | docs/api/zh/core/InterleavedBufferAttribute.html | @@ -51,7 +51,7 @@ <h3>[property:Integer offset]</h3>
<h3>[property:Boolean normalized]</h3>
<p>
- 默认值为 *true*。
+ 默认值为 *false*。
</p>
<h3>[property:Boolean isInterleavedBufferAttribute]</h3> | true |
Other | mrdoob | three.js | 6479be2b6154079618547f3741afb424ff709e4c.json | sync those pages with En doc | docs/api/zh/core/Object3D.html | @@ -206,6 +206,10 @@ <h3>[method:null applyMatrix]( [param:Matrix4 matrix] )</h3>
<h3>[method:Object3D applyQuaternion]( [param:Quaternion quaternion] )</h3>
<p>对当前物体应用由四元数所表示的变换。</p>
+
+ <h3>[method:this attach]( [param:Object3D object] )</h3>
+ <p>将*object*作为子级来添加到该对象中,同时保持该object的世界变换。</p>
+
<h3>[method:Obj... | true |
Other | mrdoob | three.js | 6479be2b6154079618547f3741afb424ff709e4c.json | sync those pages with En doc | docs/api/zh/core/bufferAttributeTypes/BufferAttributeTypes.html | @@ -31,7 +31,7 @@ <h1>BufferAttribute Types</h1>
<h2>构造函数</h2>
- 所有上述内容都以相同的方式调用。
+ <p>所有上述内容都以相同的方式调用。</p>
<h3>TypedBufferAttribute( [param:Array array], [param:Integer itemSize], [param:Boolean normalized] )</h3>
<p>
array -- 这可以是类型化或非类型化的(普通)数组。它将被转换为指定的类型。<br /><br /> | true |
Other | mrdoob | three.js | 6479be2b6154079618547f3741afb424ff709e4c.json | sync those pages with En doc | docs/api/zh/extras/ShapeUtils.html | @@ -21,7 +21,7 @@ <h2>方法</h2>
<h3>[method:Number area]( contour )</h3>
<p>
- contour -- 2D多边形。<br /><br />
+ contour -- 2D多边形,一个THREE.Vector2()数组。<br /><br />
计算(2D)轮廓多边形的面积。<br /><br />
@@ -39,7 +39,7 @@ <h3>[method:Boolean isClockwise]( pts )</h3>
<h3>[method:Array triangulateShape]( contour, hole... | true |
Other | mrdoob | three.js | ad5030bfccceb56872ef31d8719d2459751385a1.json | fix some grammar in Clock.html | docs/api/zh/core/Clock.html | @@ -11,7 +11,7 @@
<h1>[name]</h1>
<p class="desc">
该对象用于跟踪时间。如果[link:https://developer.mozilla.org/en-US/docs/Web/API/Performance/now performance.now]可用,则
- Clock 对象通过该方法实现,否则通过歉精准的[link:https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date/now Date.now]实现。
+ Clock 对象通过该方法实现,否... | false |
Other | mrdoob | three.js | 6e03136b1403dfd383aaf8f71fe335ae784d162f.json | remove unnecessary escape character | examples/webgl_materials_cubemap_mipmaps.html | @@ -30,7 +30,7 @@
init();
animate();
- // load custmized cube texture
+ //load custmized cube texture
async function loadCubeTextureWithMipmaps() {
var path = 'textures/cube/angus/';
@@ -88,10 +88,10 @@
var pendings = [];
loadCubeTextureWithMipmaps().then( function( cubeTexture ) {
... | false |
Other | mrdoob | three.js | 2dd56237b9fe14a03c0abfa67be0b5bfb03328ee.json | Support SpecularGlossiness materials | examples/js/exporters/GLTFExporter.js | @@ -895,7 +895,7 @@ THREE.GLTFExporter.prototype = {
}
- if ( material.isShaderMaterial ) {
+ if ( material.isShaderMaterial && !material.isGLTFSpecularGlossinessMaterial ) {
console.warn( 'GLTFExporter: THREE.ShaderMaterial not supported.' );
return null;
@@ -964,6 +964,36 @@ THREE.GLTFExporter... | false |
Other | mrdoob | three.js | 8578fcce8c582fe17fc05b9daacef07b1d78ce7f.json | fix typo error | src/renderers/webgl/WebGLProgram.js | @@ -42,7 +42,7 @@ function getEncodingComponents( encoding ) {
case GammaEncoding:
return [ 'Gamma', '( value, float( GAMMA_FACTOR ) )' ];
case LogLuvEncoding:
- return [ 'LogLuv', '( value )'];
+ return [ 'LogLuv', '( value )' ];
default:
throw new Error( 'unsupported encoding: ' + encoding );
| false |
Other | mrdoob | three.js | e8078d412d811f17845df00625968abb5b10664d.json | fix typo error | src/renderers/webgl/WebGLTextures.js | @@ -407,7 +407,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
state.texImage2D( _gl.TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, glInternalFormat, cubeImage[ i ].width, cubeImage[ i ].height, 0, glFormat, glType, cubeImage[ i ].data );
- var mipmap
+ var mipmap;
... | false |
Other | mrdoob | three.js | 45f1286ef9c9d5cb670eecaae85c15daaf031da6.json | Fix color space conversion for CubeTextureNode
Following up on the update of TextureNode, colors pace fromEncoding has been replaced by fromDecoding. | examples/jsm/nodes/inputs/CubeTextureNode.js | @@ -61,7 +61,7 @@ CubeTextureNode.prototype.generate = function ( builder, output ) {
builder.addContext( context );
this.colorSpace = this.colorSpace || new ColorSpaceNode( new ExpressionNode( '', outputType ) );
- this.colorSpace.fromEncoding( builder.getTextureEncodingFromMap( this.value ) );
+ this.colorSpace... | false |
Other | mrdoob | three.js | 348d6267dec151f8934a73f6aa892767f184e051.json | Update jsm files | examples/jsm/loaders/LWOLoader.js | @@ -3042,6 +3042,8 @@ GeometryParser.prototype = {
}
+ geometry.morphTargetsRelative = false;
+
},
}; | true |
Other | mrdoob | three.js | 348d6267dec151f8934a73f6aa892767f184e051.json | Update jsm files | examples/jsm/loaders/MD2Loader.js | @@ -375,6 +375,7 @@ MD2Loader.prototype = Object.assign( Object.create( Loader.prototype ), {
geometry.morphAttributes.position = morphPositions;
geometry.morphAttributes.normal = morphNormals;
+ geometry.morphTargetsRelative = false;
geometry.animations = AnimationClip.CreateClipsFromMorphTargetSeque... | true |
Other | mrdoob | three.js | 348d6267dec151f8934a73f6aa892767f184e051.json | Update jsm files | examples/jsm/loaders/MMDLoader.js | @@ -958,6 +958,7 @@ var MMDLoader = ( function () {
geometry.morphTargets = morphTargets;
geometry.morphAttributes.position = morphPositions;
+ geometry.morphTargetsRelative = false;
geometry.userData.MMD = {
bones: bones, | true |
Other | mrdoob | three.js | 9e4fb7174fdec07e576521d9647819a065537d5a.json | Update js file | examples/js/lines/LineSegments2.js | @@ -1,5 +1,3 @@
-import { Matrix4, Vector3, Line, Math as MathUtils } from "../../../build/three.module.js";
-
/**
* @author WestLangley / http://github.com/WestLangley
*
@@ -58,19 +56,20 @@ THREE.LineSegments2.prototype = Object.assign( Object.create( THREE.Mesh.prototy
raycast: ( function () {
- var start... | false |
Other | mrdoob | three.js | 60efde67dc0bec5447be69dc984eb39c0a7ddbf3.json | Fix typo in WebVR.js | examples/js/vr/WebVR.js | @@ -176,7 +176,7 @@ THREE.WEBVR = {
stylizeElement( button );
- navigator.xr.isSessionSupported( 'immersive-vr' ).then( funciton ( supported ) {
+ navigator.xr.isSessionSupported( 'immersive-vr' ).then( function ( supported ) {
if ( supported ) {
| true |
Other | mrdoob | three.js | 60efde67dc0bec5447be69dc984eb39c0a7ddbf3.json | Fix typo in WebVR.js | examples/jsm/vr/WebVR.js | @@ -178,7 +178,7 @@ var WEBVR = {
stylizeElement( button );
- navigator.xr.isSessionSupported( 'immersive-vr' ).then( funciton ( supported ) {
+ navigator.xr.isSessionSupported( 'immersive-vr' ).then( function ( supported ) {
if ( supported ) {
| true |
Other | mrdoob | three.js | 0a99abb80c37669722e396f40cb5768552f26e3e.json | Upgrade dev dependencies. | package-lock.json | @@ -1,6 +1,6 @@
{
"name": "three",
- "version": "0.108.0",
+ "version": "0.109.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -43,9 +43,9 @@
"dev": true
},
"@types/node": {
- "version": "12.7.2",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-12.... | true |
Other | mrdoob | three.js | 0a99abb80c37669722e396f40cb5768552f26e3e.json | Upgrade dev dependencies. | package.json | @@ -71,19 +71,19 @@
},
"homepage": "https://threejs.org/",
"devDependencies": {
- "@typescript-eslint/eslint-plugin": "^2.0.0",
- "@typescript-eslint/parser": "^2.0.0",
- "@types/webgl2": "0.0.5",
- "concurrently": "^4.1.2",
+ "@typescript-eslint/eslint-plugin": "^2.3.3",
+ "@typescript-eslin... | true |
Other | mrdoob | three.js | 5507b510de8cc85b8318c8bdbd4b64241f4954f0.json | Fix typings for Ray intersects*
According to the [docs](https://threejs.org/docs/#api/en/math/Ray) and after being bitten by this in practice, it looks like these 4 methods can return `null`... so the TS signature is wrong. | src/math/Ray.d.ts | @@ -26,20 +26,20 @@ export class Ray {
optionalPointOnRay?: Vector3,
optionalPointOnSegment?: Vector3
): number;
- intersectSphere( sphere: Sphere, target: Vector3 ): Vector3;
+ intersectSphere( sphere: Sphere, target: Vector3 ): Vector3 | null;
intersectsSphere( sphere: Sphere ): boolean;
distanceToPlane( ... | false |
Other | mrdoob | three.js | 898c14affc264d90801239c3b27a88bf8fd6f691.json | Fix SVGLoader strokes not rendering in Firefox | examples/jsm/loaders/SVGLoader.js | @@ -814,13 +814,13 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
function clamp( v ) {
- return Math.max( 0, Math.min( 1, v ) );
+ return Math.max( 0, Math.min( 1, parseFloat( v ) ) );
}
function positive( v ) {
- return Math.max( 0, v );
+ return Math.ma... | false |
Other | mrdoob | three.js | 95cba890d318bb0b3f9b9293c71fc3f3f5ae4b3c.json | Add numMultiviewViews to parameters | src/renderers/webgl/WebGLProgram.js | @@ -401,9 +401,6 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters
var prefixVertex, prefixFragment;
- var renderTarget = renderer.getRenderTarget();
- var numMultiviewViews = renderTarget && renderTarget.isWebGLMultiviewRenderTarget ? renderTarget.numViews : 0;
-
if ( material.... | true |
Other | mrdoob | three.js | 95cba890d318bb0b3f9b9293c71fc3f3f5ae4b3c.json | Add numMultiviewViews to parameters | src/renderers/webgl/WebGLPrograms.js | @@ -35,7 +35,7 @@ function WebGLPrograms( renderer, extensions, capabilities ) {
};
var parameterNames = [
- "precision", "supportsVertexTextures", "instancing",
+ "precision", "supportsVertexTextures", "instancing", "numMultiviewViews",
"map", "mapEncoding", "matcap", "matcapEncoding", "envMap", "envMapMode... | true |
Other | mrdoob | three.js | f5957f06b5b6699040ada6b1df881e760af1fd53.json | Fix a type description. | examples/jsm/misc/MD2Character.d.ts | @@ -1,9 +1,17 @@
import {
Object3D,
Mesh,
- Texture
+ Texture,
+ AnimationMixer
} from '../../../src/Three';
+export interface MD2PartsConfig {
+ baseUrl: string,
+ body: string,
+ skins: string[],
+ weapons: [string, string][],
+}
+
export class MD2Character {
constructor();
@@ -14,7 +22,13 @@ export clas... | false |
Other | mrdoob | three.js | 3d98e76f1d384dacdf28cdd20f474afbbe1d712b.json | remove useless code. | examples/css2d_label.html | @@ -102,7 +102,6 @@
labelRenderer.setSize( window.innerWidth, window.innerHeight );
labelRenderer.domElement.style.position = 'absolute';
labelRenderer.domElement.style.top = '0px';
- labelRenderer.domElement.style.left = '0px';
document.body.appendChild( labelRenderer.domElement );
var co... | true |
Other | mrdoob | three.js | 3d98e76f1d384dacdf28cdd20f474afbbe1d712b.json | remove useless code. | examples/webgl_loader_pdb.html | @@ -114,7 +114,6 @@
labelRenderer.setSize( window.innerWidth, window.innerHeight );
labelRenderer.domElement.style.position = 'absolute';
labelRenderer.domElement.style.top = '0px';
- labelRenderer.domElement.style.left = '0px';
labelRenderer.domElement.style.pointerEvents = 'none';
document... | true |
Other | mrdoob | three.js | 03189f308bf56b97afe55f70118a593db0cc5495.json | Fix capital letter in SpriteMaterial doc | docs/api/en/materials/SpriteMaterial.html | @@ -29,7 +29,7 @@ <h2>Code Example</h2>
<h2>Examples</h2>
<p>
- [example:webgl_sprites WebGL / sprites]<br />
+ [example:webgl_sprites webGL / sprites]<br />
[example:software_sandbox software / sandbox]<br />
[example:svg_sandbox svg / sandbox]<br />
[example:webgl_materials_cubemap_dynamic web... | false |
Other | mrdoob | three.js | a83e7d6682dedb355c3cef9e8d2c6de2807b260e.json | Fix typo in webgl_materials_translucency.html | examples/webgl_materials_translucency.html | @@ -138,7 +138,7 @@
var ThicknessControls = function () {
- this.distoration = uniforms[ 'thicknessDistortion' ].value;
+ this.distortion = uniforms[ 'thicknessDistortion' ].value;
this.ambient = uniforms[ 'thicknessAmbient' ].value;
this.attenuation = uniforms[ 'thicknessAttenuation' ].value;
... | false |
Other | mrdoob | three.js | 55b733f634283cf087142279918005722b954b75.json | Remove opacity in ShapePath | src/extras/core/ShapePath.js | @@ -13,7 +13,6 @@ function ShapePath() {
this.type = 'ShapePath';
this.color = new Color();
- this.opacity = 1.0;
this.subPaths = [];
this.currentPath = null; | false |
Other | mrdoob | three.js | 88f399263d2718975f94fd5d2ca1cdc30db9e651.json | Remove opacity property | examples/js/loaders/SVGLoader.js | @@ -107,8 +107,6 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
}
- path.opacity = style.opacity || 1.0;
-
transformPath( path, currentTransform );
paths.push( path ); | false |
Other | mrdoob | three.js | 5191eb41eadc41fa6d83ae6062b02900da81fd5a.json | Add 2 missing quotes in the en version | docs/manual/en/introduction/Creating-a-scene.html | @@ -20,7 +20,7 @@ <h2>Before we start</h2>
<!DOCTYPE html>
<html>
<head>
- <meta charset=utf-8>
+ <meta charset="utf-8">
<title>My first three.js app</title>
<style>
body { margin: 0; } | false |
Other | mrdoob | three.js | da4e98e357c4cdffb5fca6d1100af03baec1a9f9.json | Add 2 missing quotes in the zh version | docs/manual/zh/introduction/Creating-a-scene.html | @@ -20,7 +20,7 @@ <h2>开始之前</h2>
<!DOCTYPE html>
<html>
<head>
- <meta charset=utf-8>
+ <meta charset="utf-8">
<title>My first three.js app</title>
<style>
body { margin: 0; } | false |
Other | mrdoob | three.js | b51f7f75efde75c580651a54122803ecc81e2f3e.json | update the docs | docs/api/en/lights/shadows/LightShadow.html | @@ -12,60 +12,18 @@
<h1>[name]</h1>
<p class="desc">
- This is used internally by [page:PointLight PointLights] for calculating shadows, and also serves as
- a base class for the other shadow classes.
+ Serves as a base class for the other shadow classes.
</p>
- <h2>Example</h2>
- <p>
- <code>
... | true |
Other | mrdoob | three.js | b51f7f75efde75c580651a54122803ecc81e2f3e.json | update the docs | docs/api/en/lights/shadows/PointLightShadow.html | @@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <base href="../../../../" />
+ <script src="list.js"></script>
+ <script src="page.js"></script>
+ <link type="text/css" rel="stylesheet" href="page.css" />
+ </head>
+ <body>
+
+ <h1>[name]</h1>
+
+ <p class="desc">
+ Th... | true |
Other | mrdoob | three.js | b51f7f75efde75c580651a54122803ecc81e2f3e.json | update the docs | docs/list.js | @@ -217,8 +217,9 @@ var list = {
},
"Lights / Shadows": {
- "DirectionalLightShadow": "api/en/lights/shadows/DirectionalLightShadow",
"LightShadow": "api/en/lights/shadows/LightShadow",
+ "PointLightShadow": "api/en/lights/shadows/PointLightShadow",
+ "DirectionalLightShadow": "api/en/lights/sha... | true |
Other | mrdoob | three.js | aa4b0c845d8161e4fb1b91fcd6a5c1ec05769402.json | fix examples broken by lightShadow change | examples/webgl_shadowmap.html | @@ -79,13 +79,13 @@
var ambient = new THREE.AmbientLight( 0x444444 );
scene.add( ambient );
- light = new THREE.SpotLight( 0xffffff, 1, 0, Math.PI / 2 );
+ light = new THREE.SpotLight( 0xffffff, 1, 0, Math.PI / 5, 0.3 );
light.position.set( 0, 1500, 1000 );
light.target.position.set( 0, 0, 0... | true |
Other | mrdoob | three.js | aa4b0c845d8161e4fb1b91fcd6a5c1ec05769402.json | fix examples broken by lightShadow change | examples/webgl_shadowmap_performance.html | @@ -76,14 +76,13 @@
var ambient = new THREE.AmbientLight( 0x444444 );
scene.add( ambient );
- light = new THREE.SpotLight( 0xffffff, 1, 0, Math.PI / 2 );
+ light = new THREE.SpotLight( 0xffffff, 1, 0, Math.PI / 5, 0.3 );
light.position.set( 0, 1500, 1000 );
light.target.position.set( 0, 0, 0... | true |
Other | mrdoob | three.js | 0442b430be43b04580abcdcc7cdbbbaed5540c44.json | Add matrix calcs to direction shadow class | src/lights/DirectionalLightShadow.js | @@ -5,15 +5,34 @@ import { OrthographicCamera } from '../cameras/OrthographicCamera.js';
* @author mrdoob / http://mrdoob.com/
*/
-function DirectionalLightShadow( ) {
+function DirectionalLightShadow() {
LightShadow.call( this, new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) );
}
DirectionalLightSha... | false |
Other | mrdoob | three.js | a8179c989653149c4624413197fa691678eb30b9.json | fix texture lod | src/renderers/webgl/WebGLProgram.js | @@ -532,7 +532,7 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters,
parameters.logarithmicDepthBuffer ? '#define USE_LOGDEPTHBUF' : '',
parameters.logarithmicDepthBuffer && ( capabilities.isWebGL2 || extensions.get( 'EXT_frag_depth' ) ) ? '#define USE_LOGDEPTHBUF_EXT' : '',
- ... | false |
Other | mrdoob | three.js | ae85dbe2e0bbf7835486b56550a3a20e5a36c6bd.json | Update varriable names | src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js | @@ -1,15 +1,7 @@
export default /* glsl */`
#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
- if ( skipLogDepth == 1.0 ) {
-
- gl_FragDepthEXT = gl_FragCoord.z;
-
- } else {
-
- gl_FragDepthEXT = log2( vFragDepth ) * logDepthBufFC * 0.5;
-
- }
+ gl_FragDepthEXT = vIsPerspective == 1.0 ? log2( vFr... | true |
Other | mrdoob | three.js | ae85dbe2e0bbf7835486b56550a3a20e5a36c6bd.json | Update varriable names | src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js | @@ -3,7 +3,7 @@ export default /* glsl */`
uniform float logDepthBufFC;
varying float vFragDepth;
- varying float skipLogDepth;
+ varying float vIsPerspective;
#endif
`; | true |
Other | mrdoob | three.js | ae85dbe2e0bbf7835486b56550a3a20e5a36c6bd.json | Update varriable names | src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js | @@ -4,7 +4,7 @@ export default /* glsl */`
#ifdef USE_LOGDEPTHBUF_EXT
varying float vFragDepth;
- varying float skipLogDepth;
+ varying float vIsPerspective;
#else
| true |
Other | mrdoob | three.js | ae85dbe2e0bbf7835486b56550a3a20e5a36c6bd.json | Update varriable names | src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js | @@ -4,7 +4,7 @@ export default /* glsl */`
#ifdef USE_LOGDEPTHBUF_EXT
vFragDepth = 1.0 + gl_Position.w;
- skipLogDepth = isPerspectiveMatrix( projectionMatrix ) ? 0.0 : 1.0;
+ vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
#else
| true |
Other | mrdoob | three.js | 61bf973cbe53f3d44447a699a9d234767468e9c7.json | Fix a type description. | src/animation/KeyframeTrack.d.ts | @@ -13,8 +13,8 @@ export class KeyframeTrack {
);
name: string;
- times: any[];
- values: any[];
+ times: Float32Array;
+ values: Float32Array;
ValueTypeName: string;
TimeBufferType: Float32Array; | false |
Other | mrdoob | three.js | e6312c8a673a293b3a8e8925e14cc1c4146efba7.json | Remove the files from PR | build/three.js | @@ -8458,7 +8458,6 @@
if ( this.roughness !== undefined ) { data.roughness = this.roughness; }
if ( this.metalness !== undefined ) { data.metalness = this.metalness; }
- if ( this.sheen && this.sheen.isColor ) { data.sheen = this.sheen.getHex(); }
if ( this.emissive && this.emissive.isColor ) { data.emi... | true |
Other | mrdoob | three.js | e6312c8a673a293b3a8e8925e14cc1c4146efba7.json | Remove the files from PR | build/three.module.js | @@ -8452,7 +8452,6 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
if ( this.roughness !== undefined ) data.roughness = this.roughness;
if ( this.metalness !== undefined ) data.metalness = this.metalness;
- if ( this.sheen && this.sheen.isColor ) data.sheen = this.sheen.getHe... | true |
Other | mrdoob | three.js | e6312c8a673a293b3a8e8925e14cc1c4146efba7.json | Remove the files from PR | package-lock.json | @@ -1959,7 +1959,7 @@
"spdx-expression-parse": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
- "integrity": "sha1-meEZt6XaAOBUkcn6M4t5BII7QdA=",
+ "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh... | true |
Other | mrdoob | three.js | c49ed806b54549eaff4824e1b4ad9c6d3537de8f.json | Expose the sheen parameter for Physical Material
in the editor | editor/js/Sidebar.Material.js | @@ -195,6 +195,18 @@ Sidebar.Material = function ( editor ) {
container.add( materialMetalnessRow );
+ // sheen
+
+ var materialSheenRow = new UI.Row();
+ var materialSheenEnabled = new UI.Checkbox( false ).onChange( update );
+ var materialSheen = new UI.Color().setHexValue(0x000000).onChange( update );
+
+ mate... | true |
Other | mrdoob | three.js | c49ed806b54549eaff4824e1b4ad9c6d3537de8f.json | Expose the sheen parameter for Physical Material
in the editor | editor/js/Strings.js | @@ -221,6 +221,7 @@ var Strings = function ( config ) {
'sidebar/material/depthPacking': 'Depth Packing',
'sidebar/material/roughness': 'Roughness',
'sidebar/material/metalness': 'Metalness',
+ 'sidebar/material/sheen': 'Sheen',
'sidebar/material/emissive': 'Emissive',
'sidebar/material/specular':... | true |
Other | mrdoob | three.js | fe0e7957e3102b96213409408aa8b04b32fa9f33.json | Add removal warning | src/materials/Material.js | @@ -50,6 +50,24 @@ function Material() {
this.stencilZPass = KeepStencilOp;
this.stencilWrite = false;
+ Object.defineProperty( this, 'stencilMask', {
+
+ set: function( value ) {
+
+ console.warn( 'Material.stencilMask has been removed. Use Material.stencilFuncMask instead.' );
+ this.stencilFuncMask = valu... | false |
Other | mrdoob | three.js | 8e15fb24e1746699c90b73e4b69aea92fbce63fe.json | Fix a spelling error | docs/api/en/materials/Material.html | @@ -278,7 +278,7 @@ <h3>[property:Boolean transparent]</h3>
as transparent objects need special treatment and are rendered after
non-transparent objects. <br />
When set to true, the extent to which the material is transparent is
- controlled by setting it's [page:Float opacity] property. <br />
+ controlled... | false |
Other | mrdoob | three.js | 62fef74709d9e24790927aadbd4d5005a3e2479e.json | Update JSM module | examples/jsm/renderers/SVGRenderer.js | @@ -139,13 +139,13 @@ var SVGRenderer = function () {
}
- function getSvgColor( color, opacity ) {
+ function getSvgColor( color, opacity, asStroke ) {
var arg = Math.floor( color.r * 255 ) + ',' + Math.floor( color.g * 255 ) + ',' + Math.floor( color.b * 255 );
if ( opacity === undefined || opacity ===... | false |
Other | mrdoob | three.js | 7d2aeeee226319d49b9bd5ae03931a69d02fdf08.json | Fix linter error | 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 = isWebG... | false |
Other | mrdoob | three.js | f1936dc7af6bbcb34725e497f604d77f4039dea8.json | Remove getMaxViews() from Multiview
rename multiview.attachRenderTarget() to attachCamera()
use isWebGLMultiviewRenderTarget instead of instanceof | src/renderers/WebGLRenderer.js | @@ -1181,7 +1181,7 @@ function WebGLRenderer( parameters ) {
if ( capabilities.multiview ) {
- multiview.attachRenderTarget( camera );
+ multiview.attachCamera( camera );
}
| true |
Other | mrdoob | three.js | f1936dc7af6bbcb34725e497f604d77f4039dea8.json | Remove getMaxViews() from Multiview
rename multiview.attachRenderTarget() to attachCamera()
use isWebGLMultiviewRenderTarget instead of instanceof | 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 = isWebG... | true |
Other | mrdoob | three.js | f1936dc7af6bbcb34725e497f604d77f4039dea8.json | Remove getMaxViews() from Multiview
rename multiview.attachRenderTarget() to attachCamera()
use isWebGLMultiviewRenderTarget instead of instanceof | src/renderers/webgl/WebGLMultiview.js | @@ -20,12 +20,6 @@ function WebGLMultiview( renderer, gl ) {
var renderTarget, currentRenderTarget;
var mat3, mat4, cameraArray, renderSize;
- function getMaxViews() {
-
- return capabilities.maxMultiviewViews;
-
- }
-
function getCameraArray( camera ) {
if ( camera.isArrayCamera ) return camera.cameras;
... | true |
Other | mrdoob | three.js | f1936dc7af6bbcb34725e497f604d77f4039dea8.json | Remove getMaxViews() from Multiview
rename multiview.attachRenderTarget() to attachCamera()
use isWebGLMultiviewRenderTarget instead of instanceof | src/renderers/webgl/WebGLProgram.js | @@ -6,7 +6,6 @@ import { WebGLUniforms } from './WebGLUniforms.js';
import { WebGLShader } from './WebGLShader.js';
import { ShaderChunk } from '../shaders/ShaderChunk.js';
import { NoToneMapping, AddOperation, MixOperation, MultiplyOperation, EquirectangularRefractionMapping, CubeRefractionMapping, SphericalReflect... | true |
Other | mrdoob | three.js | 085ad279fa802ecf34b7b64a50b280ca920a8cf3.json | remove capabilities from WebglGlprogram | src/renderers/webgl/WebGLProgram.js | @@ -371,7 +371,7 @@ function generateEnvMapBlendingDefine( parameters, material ) {
}
-function WebGLProgram( renderer, extensions, code, material, shader, parameters, capabilities ) {
+function WebGLProgram( renderer, extensions, code, material, shader, parameters ) {
var gl = renderer.getContext();
@@ -387... | true |
Other | mrdoob | three.js | 085ad279fa802ecf34b7b64a50b280ca920a8cf3.json | remove capabilities from WebglGlprogram | src/renderers/webgl/WebGLPrograms.js | @@ -137,6 +137,7 @@ function WebGLPrograms( renderer, extensions, capabilities ) {
shaderID: shaderID,
precision: precision,
+ isWebGL2: capabilities.isWebGL2,
supportsVertexTextures: capabilities.vertexTextures,
outputEncoding: getTextureEncodingFromMap( ( ! currentRenderTarget ) ? null : currentRe... | true |
Other | mrdoob | three.js | a6df957635e23dec368c7f4e1c59062953e976a7.json | Move tsconfig.lint.json to utils/build/ | package.json | @@ -50,7 +50,7 @@
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
"dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"rollup -c test/rollup.un... | true |
Other | mrdoob | three.js | a6df957635e23dec368c7f4e1c59062953e976a7.json | Move tsconfig.lint.json to utils/build/ | tsconfig.lint.json | @@ -1,8 +0,0 @@
-{
- "compilerOptions": {
- "noEmit": true,
- },
- // NOTE (from https://www.typescriptlang.org/docs/handbook/tsconfig-json.html):
- // 'If the "files" and "include" are both left unspecified, the compiler defaults to including
- // all TypeScript (.ts, .d.ts and .tsx) files in the containing di... | true |
Other | mrdoob | three.js | a6df957635e23dec368c7f4e1c59062953e976a7.json | Move tsconfig.lint.json to utils/build/ | utils/build/tsconfig.lint.json | @@ -0,0 +1,8 @@
+{
+ "compilerOptions": {
+ "noEmit": true,
+ },
+ "include": [
+ "../../**/*.ts"
+ ]
+} | true |
Other | mrdoob | three.js | 91404cdee0a6300389453e2dae490e8c7d462350.json | add color unittests | test/unit/src/math/Color.tests.js | @@ -29,9 +29,13 @@ export default QUnit.module( 'Maths', () => {
} );
// PUBLIC STUFF
- QUnit.todo( "isColor", ( assert ) => {
+ QUnit.test( "isColor", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
+ var a = new Color();
+ assert.ok( a.isColor === true, "Passed!" );
+
+ var ... | false |
Other | mrdoob | three.js | 16e079ae125612bd4c0d7e4cc17dd39048c77313.json | add box3 unittests | test/unit/src/math/Box3.tests.js | @@ -54,9 +54,13 @@ export default QUnit.module( 'Maths', () => {
} );
// PUBLIC STUFF
- QUnit.todo( "isBox3", ( assert ) => {
+ QUnit.test( "isBox3", ( assert ) => {
- assert.ok( false, "everything's gonna be alright" );
+ var a = new Box3();
+ assert.ok( a.isBox3 === true, "Passed!" );
+
+ var b = ... | false |
Other | mrdoob | three.js | 0b77e421529e9e63e57b12690917c72c0149112a.json | fix a todo | test/unit/src/math/Box2.tests.js | @@ -82,7 +82,7 @@ export default QUnit.module( 'Maths', () => {
} );
- QUnit.todo( "clone", ( assert ) => {
+ QUnit.test( "clone", ( assert ) => {
var a = new Box2( zero2, zero2 );
@@ -91,7 +91,7 @@ export default QUnit.module( 'Maths', () => {
assert.ok( b.min.equals( zero2 ), "Passed!" );
ass... | false |
Other | mrdoob | three.js | f83ff206161c7d519f7ff360a69225adfa20c852.json | lint it + fix error | test/unit/src/math/Box2.tests.js | @@ -69,16 +69,16 @@ export default QUnit.module( 'Maths', () => {
var a = new Box2();
a.setFromCenterAndSize( zero2, two2 );
- assert.ok(a.min.equals( negOne2 ), "Passed!");
- assert.ok(a.max.equals( one2 ), "Passed!");
+ assert.ok( a.min.equals( negOne2 ), "Passed!" );
+ assert.ok( a.max.equals( one2... | true |
Other | mrdoob | three.js | f83ff206161c7d519f7ff360a69225adfa20c852.json | lint it + fix error | test/unit/src/math/Constants.tests.js | @@ -14,7 +14,7 @@ export const negInf2 = new Vector2( - Infinity, - Infinity );
export const posInf2 = new Vector2( Infinity, Infinity );
-export const negOne2 = new Vector2(-1, -1);
+export const negOne2 = new Vector2( - 1, - 1 );
export const zero2 = new Vector2();
export const one2 = new Vector2( 1, 1 ); | true |
Other | mrdoob | three.js | b0badc4686a52b4ec8bf85084b32d430911e127d.json | add box2 unittests | test/unit/src/math/Box2.tests.js | @@ -9,6 +9,7 @@ import { Vector2 } from '../../../../src/math/Vector2';
import {
negInf2,
posInf2,
+ negOne2,
zero2,
one2,
two2
@@ -63,15 +64,37 @@ export default QUnit.module( 'Maths', () => {
} );
- QUnit.todo( "setFromCenterAndSize", ( assert ) => {
+ QUnit.test( "setFromCenterAndSize", ( assert ... | true |
Other | mrdoob | three.js | b0badc4686a52b4ec8bf85084b32d430911e127d.json | add box2 unittests | test/unit/src/math/Constants.tests.js | @@ -13,6 +13,9 @@ export const w = 5;
export const negInf2 = new Vector2( - Infinity, - Infinity );
export const posInf2 = new Vector2( Infinity, Infinity );
+
+export const negOne2 = new Vector2(-1, -1);
+
export const zero2 = new Vector2();
export const one2 = new Vector2( 1, 1 );
export const two2 = new Vecto... | true |
Other | mrdoob | three.js | 902ac6a0646547c887450ad8ad0551d629f0072d.json | Remove update flag from public API | src/math/Euler.d.ts | @@ -165,8 +165,8 @@ export class Euler {
set( x: number, y: number, z: number, order?: string ): Euler;
clone(): this;
copy( euler: Euler ): this;
- setFromRotationMatrix( m: Matrix4, order?: string, update?: boolean ): Euler;
- setFromQuaternion( q: Quaternion, order?: string, update?: boolean ): Euler;
+ setFro... | true |
Other | mrdoob | three.js | 902ac6a0646547c887450ad8ad0551d629f0072d.json | Remove update flag from public API | src/math/Quaternion.d.ts | @@ -44,7 +44,7 @@ export class Quaternion {
/**
* Sets this quaternion from rotation specified by Euler angles.
*/
- setFromEuler( euler: Euler, update?: boolean ): Quaternion;
+ setFromEuler( euler: Euler ): Quaternion;
/**
* Sets this quaternion from rotation specified by axis and angle. | true |
Other | mrdoob | three.js | 519fe3a30bde7b13b05af08673729db9d12b4db9.json | Add missing functions | src/math/SphericalHarmonics3.d.ts | @@ -17,5 +17,8 @@ export class SphericalHarmonics3 {
fromArray(array: number[]): SphericalHarmonics3;
toArray(): number[];
+ getAt(normal: Vector3, target: Vector3) : Vector3;
+ getIrradianceAt(normal: Vector3, target: Vector3) : Vector3;
+
static getBasisAt(normal: Vector3, shBasis: number[]): void;
}; | false |
Other | mrdoob | three.js | 929fa2a68cddb132dacfbe55502bf655082a0310.json | prevent user-selection of info/dg text | examples/main.css | @@ -32,9 +32,17 @@ canvas {
padding: 10px;
box-sizing: border-box;
text-align: center;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
z-index: 1; /* TODO Solve this in HTML */
}
.dg.ac {
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-s... | false |
Other | mrdoob | three.js | 0f1732bdcc5bc72b808eb9cbeab3305819ab5a56.json | Add support for Chrome 75 | examples/js/vr/HelioWebXRPolyfill.js | @@ -4,7 +4,8 @@
if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
- console.log( "Helio WebXR Polyfill (Lumin 0.96.0)" );
+ console.log( "Helio WebXR Polyfill (Lumin 0.97.0)" );
+ const isHelio96 = navigator.userAgent.includes("Chrome/73");
// WebXRManager - XR.supportSession() Polyfill - We... | false |
Other | mrdoob | three.js | 0dd6593528ba6505565d4bfe38b65b258909b490.json | Add params to SAOPass.d.ts | examples/jsm/postprocessing/SAOPass.d.ts | @@ -13,6 +13,19 @@ import {
import { Pass } from './Pass';
+interface SAOPassParams {
+ output: SAOPass.OUTPUT;
+ saoBias: number;
+ saoIntensity: number;
+ saoScale: number;
+ saoKernelRadius: number;
+ saoMinResolution: number;
+ saoBlur: number;
+ saoBlurRadius: number;
+ saoBlurStdDev: number;
+ saoBlurDepthC... | false |
Other | mrdoob | three.js | bfb1c3dd75e7d2d5443959d0503481dc064d8668.json | Fix merge error. | examples/webgl_loader_gltf_extensions.html | @@ -267,7 +267,7 @@
loader = new GLTFLoader();
- var dracoLoader = new THREE.DRACOLoader();
+ var dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath( 'js/libs/draco/gltf/' )
loader.setDRACOLoader( dracoLoader );
| false |
Other | mrdoob | three.js | 66225408ce42a9fa7dcf735ecbc69e66481d5a62.json | Fix decodeAttribute reference. | examples/js/loaders/DRACOLoader2.js | @@ -472,7 +472,7 @@ THREE.DRACOLoader.DRACOWorker = function () {
var attributeId = attributeIDs[ attributeName ];
var attribute = decoder.GetAttributeByUniqueId( dracoGeometry, attributeId );
- geometry.attributes.push( this.decodeAttribute( draco, decoder, dracoGeometry, attributeName, attributeType, attr... | false |
Other | mrdoob | three.js | 6bf1339341e99672c37e8b2ba0257d6f47634ec7.json | fix code style | src/objects/InstancedMesh.js | @@ -38,7 +38,7 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
},
// updateMorphTargets: function () {
- //
+ //
// }
} ); | false |
Other | mrdoob | three.js | 98ea34735ce1773131f80ab9398e205853536f62.json | update three.js to support InstancedMesh.raycast | build/three.js | @@ -26961,6 +26961,8 @@
var data = Object3D.prototype.toJSON.call( this, meta );
+ if ( this.autoUpdate === false ) { data.object.autoUpdate = false; }
+
data.object.levels = [];
var levels = this.levels;
@@ -27294,6 +27296,21 @@
* @author mrdoob / http://mrdoob.com/
*/
+ var _inverseMatrix$... | true |
Other | mrdoob | three.js | 98ea34735ce1773131f80ab9398e205853536f62.json | update three.js to support InstancedMesh.raycast | build/three.module.js | @@ -26953,6 +26953,8 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
var data = Object3D.prototype.toJSON.call( this, meta );
+ if ( this.autoUpdate === false ) data.object.autoUpdate = false;
+
data.object.levels = [];
var levels = this.levels;
@@ -27286,6 +27288,21 @@ Bone.pro... | true |
Other | mrdoob | three.js | 611410c2df3976050bfaeedb3ae493da0748b3f7.json | Document the copy behavior of .set in math classes
As mentioned in #17738, math classes keep the arguments passed in their
constructor as references, but when they provide a .set() method,
that one only copies the values from the passed objects.
This behavior is now documented in the relevant classes. | docs/api/en/math/Box2.html | @@ -174,7 +174,8 @@ <h3>[method:Box2 set]( [param:Vector2 min], [param:Vector2 max] )</h3>
[page:Vector2 min] - (required ) [page:Vector2] representing the lower (x, y) boundary of the box. <br>
[page:Vector2 max] - (required) [page:Vector2] representing the upper (x, y) boundary of the box. <br /><br />
- ... | true |
Other | mrdoob | three.js | 611410c2df3976050bfaeedb3ae493da0748b3f7.json | Document the copy behavior of .set in math classes
As mentioned in #17738, math classes keep the arguments passed in their
constructor as references, but when they provide a .set() method,
that one only copies the values from the passed objects.
This behavior is now documented in the relevant classes. | docs/api/en/math/Box3.html | @@ -247,7 +247,8 @@ <h3>[method:Box3 set]( [param:Vector3 min], [param:Vector3 max] )</h3>
[page:Vector3 min] - [page:Vector3] representing the lower (x, y, z) boundary of the box.<br />
[page:Vector3 max] - [page:Vector3] representing the lower upper (x, y, z) boundary of the box.<br /><br />
- Sets the lower... | true |
Other | mrdoob | three.js | 611410c2df3976050bfaeedb3ae493da0748b3f7.json | Document the copy behavior of .set in math classes
As mentioned in #17738, math classes keep the arguments passed in their
constructor as references, but when they provide a .set() method,
that one only copies the values from the passed objects.
This behavior is now documented in the relevant classes. | docs/api/en/math/Frustum.html | @@ -91,7 +91,8 @@ <h3>[method:Boolean intersectsSprite]( [param:Sprite sprite] )</h3>
<h3>[method:Frustum set]( [param:Plane p0], [param:Plane p1], [param:Plane p2], [param:Plane p3], [param:Plane p4], [param:Plane p5] )</h3>
<p>
- Sets the current frustum from the passed planes. No plane order is implicitely ... | true |
Other | mrdoob | three.js | 611410c2df3976050bfaeedb3ae493da0748b3f7.json | Document the copy behavior of .set in math classes
As mentioned in #17738, math classes keep the arguments passed in their
constructor as references, but when they provide a .set() method,
that one only copies the values from the passed objects.
This behavior is now documented in the relevant classes. | docs/api/en/math/Line3.html | @@ -113,7 +113,8 @@ <h3>[method:Line3 set]( [param:Vector3 start], [param:Vector3 end] )</h3>
[page:Vector3 start] - set the [page:.start start point] of the line.<br />
[page:Vector3 end] - set the [page:.end end point] of the line.<br /><br />
- Sets the start and end values by copying the provided vectors.
... | true |
Other | mrdoob | three.js | 611410c2df3976050bfaeedb3ae493da0748b3f7.json | Document the copy behavior of .set in math classes
As mentioned in #17738, math classes keep the arguments passed in their
constructor as references, but when they provide a .set() method,
that one only copies the values from the passed objects.
This behavior is now documented in the relevant classes. | docs/api/en/math/Plane.html | @@ -130,7 +130,8 @@ <h3>[method:Plane set]( [param:Vector3 normal], [param:Float constant] )</h3>
[page:Vector3 normal] - a unit length [page:Vector3] defining the normal of the plane.<br />
[page:Float constant] - the signed distance from the origin to the plane. Default is *0*.<br /><br />
- Sets the pla... | true |
Other | mrdoob | three.js | 611410c2df3976050bfaeedb3ae493da0748b3f7.json | Document the copy behavior of .set in math classes
As mentioned in #17738, math classes keep the arguments passed in their
constructor as references, but when they provide a .set() method,
that one only copies the values from the passed objects.
This behavior is now documented in the relevant classes. | docs/api/en/math/Ray.html | @@ -202,7 +202,8 @@ <h3>[method:Ray set]( [param:Vector3 origin], [param:Vector3 direction] )</h3>
properly.<br /><br />
Copy the parameters to the [page:.origin origin] and [page:.direction direction] properties
- of this ray.
+ of this ray.<br>
+ Please note that this method only copies the values from the... | true |
Other | mrdoob | three.js | 611410c2df3976050bfaeedb3ae493da0748b3f7.json | Document the copy behavior of .set in math classes
As mentioned in #17738, math classes keep the arguments passed in their
constructor as references, but when they provide a .set() method,
that one only copies the values from the passed objects.
This behavior is now documented in the relevant classes. | docs/api/en/math/Sphere.html | @@ -114,7 +114,8 @@ <h3>[method:Sphere set]( [param:Vector3 center], [param:Float radius] )</h3>
[page:Vector3 center] - center of the sphere.<br />
[page:Float radius] - radius of the sphere.<br /><br />
- Sets the [page:.center center] and [page:.radius radius] properties of this sphere.
+ Sets the [page:... | true |
Other | mrdoob | three.js | 611410c2df3976050bfaeedb3ae493da0748b3f7.json | Document the copy behavior of .set in math classes
As mentioned in #17738, math classes keep the arguments passed in their
constructor as references, but when they provide a .set() method,
that one only copies the values from the passed objects.
This behavior is now documented in the relevant classes. | docs/api/en/math/Triangle.html | @@ -123,7 +123,8 @@ <h3>[method:Boolean intersectsBox]( [param:Box3 box] )</h3>
<h3>[method:Triangle set]( [param:Vector3 a], [param:Vector3 b], [param:Vector3 c] ) [param:Triangle this]</h3>
<p>
- Sets the triangle's [page:.a a], [page:.b b] and [page:.c c] properties to the passed [page:vector3 vector3s].
+ ... | true |
Other | mrdoob | three.js | 247b93f14e3f883ec285c0ba76264ec3286c85a8.json | fix RGBAToDepth artefacts | src/renderers/shaders/ShaderChunk/packing.glsl.js | @@ -22,7 +22,7 @@ vec4 packDepthToRGBA( const in float v ) {
}
float unpackRGBAToDepth( const in vec4 v ) {
- return dot( v, UnpackFactors );
+ return dot( floor( v * 255.0 + 0.5 ) / 255.0, UnpackFactors );
}
vec4 encodeHalfRGBA ( vec2 v ) { | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.