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 | e4e8ed68bcf6595eb7b7c4e2a41be47ff83dffbb.json | Update code style | examples/webgl_geometry_colors_lookuptable.html | @@ -72,7 +72,7 @@
uiScene = new THREE.Scene();
- updateColorEvent = {type : 'updateColor'};
+ updateColorEvent = { type: 'updateColor' };
var width = window.innerWidth;
var height = window.innerHeight;
@@ -124,14 +124,18 @@
var gui = new dat.GUI();
- gui.add( params, 'legendLayout... | true |
Other | mrdoob | three.js | 9f3e01895e2b218f91c61d015e98098c90dc1a8c.json | update favicon path | docs/index.html | @@ -5,6 +5,7 @@
<title>three.js / documentation</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="index.css">
+ <link rel="shortcut icon" href="../favicon.ico" />
</head>
<body>
| true |
Other | mrdoob | three.js | 9f3e01895e2b218f91c61d015e98098c90dc1a8c.json | update favicon path | editor/index.html | @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="apple-touch-icon" href="images/icon.png">
<link rel="manifest" href="manifest.json">
+ <link rel="shortcut icon" href="../favicon.ico" />
</head>
<body ontouchstart="">
... | true |
Other | mrdoob | three.js | 9f3e01895e2b218f91c61d015e98098c90dc1a8c.json | update favicon path | examples/index.html | @@ -4,7 +4,7 @@
<title>three.js / examples</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <link rel="shortcut icon" href="favicon.ico" />
+ <link rel="shortcut icon" href="../favicon.ico" />
<style>
@font-f... | true |
Other | mrdoob | three.js | 8f2a6d4e374575ce568f36357661c982519e2aa1.json | Update code style | examples/js/math/Lut.js | @@ -38,24 +38,24 @@ THREE.Lut = function ( colormap, numberofcolors ) {
};
var defaultLegendParamters = {
- layout : 'vertical',
- position : new THREE.Vector3(),
- dimensions : {width : 0.5, height: 3}
+ layout: 'vertical',
+ position: new THREE.Vector3(),
+ dimensions: { width: 0.5, height: 3 }
};
var default... | true |
Other | mrdoob | three.js | 8f2a6d4e374575ce568f36357661c982519e2aa1.json | Update code style | examples/webgl_geometry_colors_lookuptable.html | @@ -45,7 +45,6 @@
<script src="js/libs/dat.gui.min.js"></script>
<script>
-
if ( WEBGL.isWebGLAvailable() === false ) {
document.body.appendChild( WEBGL.getWebGLErrorMessage() );
@@ -75,28 +74,28 @@
var width = window.innerWidth;
var height = window.innerHeight;
- perpCamera = new THRE... | true |
Other | mrdoob | three.js | 2f367c48e5e8cbc01cb9ded7f85f126b8e80c943.json | remove unnecessary set side | examples/webgl_materials_nodes.html | @@ -1581,8 +1581,6 @@
mtl.environment = new THREE.ColorNode( 0xFFFFFF );
mtl.alpha = clouds;
- defaultSide = THREE.FrontSide;
-
// GUI
addGui( 'color', mtl.environment.value.getHex(), function ( val ) { | false |
Other | mrdoob | three.js | 5f00c11ac4451b2212000ed293246b40a23a150d.json | remove unused variable | examples/js/loaders/LDrawLoader.js | @@ -271,18 +271,6 @@ THREE.LDrawLoader = ( function () {
}, onProgress, onError );
- function subobjectLoad( url, onLoad, onProgress, onError, subobject ) {
-
- var fileLoader = new THREE.FileLoader( scope.manager );
- fileLoader.setPath( scope.path );
- fileLoader.load( url, function ( text ) {
-
- ... | false |
Other | mrdoob | three.js | 46a7f48db043c296bcd97a208608244538309366.json | Fix name to lowercase | examples/js/loaders/LDrawLoader.js | @@ -291,7 +291,7 @@ THREE.LDrawLoader = ( function () {
var parentParseScope = scope.getParentParseScope();
// Add to cache
- var currentFileName = parentParseScope.currentFileName;
+ var currentFileName = parentParseScope.currentFileName && parentParseScope.currentFileName.toLowerCase();
if ( sc... | false |
Other | mrdoob | three.js | 760c5e6bbe5bc01baa04580213d30acba570d6a7.json | resolve rebase conflicts | examples/js/loaders/LDrawLoader.js | @@ -308,37 +308,33 @@ THREE.LDrawLoader = ( function () {
parseScope.numSubobjects = parseScope.subobjects.length;
parseScope.subobjectIndex = 0;
- if ( parseScope.numSubobjects > 0 ) {
+ var finishedCount = 0;
+ onSubobjectFinish();
- // Load the first subobject
- var subobjectGroup = lo... | false |
Other | mrdoob | three.js | ba2ed44da63e1629a8b70cac22ff90c1a75655a8.json | Add support for light probes | src/Three.js | @@ -60,6 +60,7 @@ export { DirectionalLight } from './lights/DirectionalLight.js';
export { AmbientLight } from './lights/AmbientLight.js';
export { LightShadow } from './lights/LightShadow.js';
export { Light } from './lights/Light.js';
+export { LightProbe } from './lights/LightProbe.js';
export { StereoCamera } ... | true |
Other | mrdoob | three.js | ba2ed44da63e1629a8b70cac22ff90c1a75655a8.json | Add support for light probes | src/renderers/WebGLRenderer.js | @@ -1599,6 +1599,7 @@ function WebGLRenderer( parameters ) {
// wire up the material to this renderer's lighting state
uniforms.ambientLightColor.value = lights.state.ambient;
+ uniforms.lightProbe.value = lights.state.probe;
uniforms.directionalLights.value = lights.state.directional;
uniforms.spot... | true |
Other | mrdoob | three.js | ba2ed44da63e1629a8b70cac22ff90c1a75655a8.json | Add support for light probes | src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js | @@ -103,6 +103,8 @@ IncidentLight directLight;
vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
+ irradiance += getLightProbeIrradiance( lightProbe, geometry );
+
#if ( NUM_HEMI_LIGHTS > 0 )
#pragma unroll_loop | true |
Other | mrdoob | three.js | ba2ed44da63e1629a8b70cac22ff90c1a75655a8.json | Add support for light probes | src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js | @@ -1,5 +1,43 @@
export default /* glsl */`
uniform vec3 ambientLightColor;
+uniform vec3 lightProbe[ 9 ];
+
+// get the irradiance (radiance convolved with cosine lobe) at the point 'normal' on the unit sphere
+// source: https://graphics.stanford.edu/papers/envmap/envmap.pdf
+vec3 shGetIrradianceAt( in vec3 normal,... | true |
Other | mrdoob | three.js | ba2ed44da63e1629a8b70cac22ff90c1a75655a8.json | Add support for light probes | src/renderers/shaders/UniformsLib.js | @@ -109,6 +109,8 @@ var UniformsLib = {
ambientLightColor: { value: [] },
+ lightProbe: { value: [] },
+
directionalLights: { value: [], properties: {
direction: {},
color: {}, | true |
Other | mrdoob | three.js | ba2ed44da63e1629a8b70cac22ff90c1a75655a8.json | Add support for light probes | src/renderers/webgl/WebGLLights.js | @@ -121,6 +121,7 @@ function WebGLLights() {
},
ambient: [ 0, 0, 0 ],
+ probe: [],
directional: [],
directionalShadowMap: [],
directionalShadowMatrix: [],
@@ -135,6 +136,8 @@ function WebGLLights() {
};
+ for ( var i = 0; i < 9; i ++ ) state.probe.push( new Vector3() );
+
var vector3 = new Vec... | true |
Other | mrdoob | three.js | e5b487ca79efe342cce05fec5ed7b77c55d0996b.json | Render all clip planes | examples/webgl_clipping_stencil.html | @@ -34,32 +34,16 @@
init();
animate();
- function createStencilGroup( geometry, material, planes ) {
+ function createPlaneStencilGroup( geometry, plane, renderOrder ) {
var group = new THREE.Group();
var baseMat = new THREE.MeshBasicMaterial();
baseMat.depthWrite = false;
baseMat.de... | false |
Other | mrdoob | three.js | f099cbdb629f4326d9afd0546e1992d11871c1f6.json | add start to clip example | examples/webgl_clipping_stencil.html | @@ -0,0 +1,193 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - clipping planes</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 {
+ margin: 0px;
+ background-color: #000000... | false |
Other | mrdoob | three.js | c2e6781bb900fd85f0533db843f80db76fa9325d.json | Remove Loader inheritance from CTMLoader | examples/js/loaders/ctm/CTMLoader.js | @@ -10,11 +10,8 @@
THREE.CTMLoader = function () {
- THREE.Loader.call( this );
-
};
-THREE.CTMLoader.prototype = Object.create( THREE.Loader.prototype );
THREE.CTMLoader.prototype.constructor = THREE.CTMLoader;
// Load multiple CTM parts defined in JSON
@@ -58,7 +55,7 @@ THREE.CTMLoader.prototype.loadParts... | false |
Other | mrdoob | three.js | 96950ea796c87d60c99de3fe4d6d2abf4994b5ce.json | Add isQuaternion and isTexture in documentation | docs/api/en/math/Quaternion.html | @@ -44,6 +44,13 @@ <h3>[name]( [param:Float x], [param:Float y], [param:Float z], [param:Float w] )
<h2>Properties</h2>
+ <h3>[property:Boolean isQuaternion]</h3>
+ <p>
+ Used to check whether this or derived classes are Quaternions. Default is *true*.<br /><br />
+
+ You should not change this, as it is u... | true |
Other | mrdoob | three.js | 96950ea796c87d60c99de3fe4d6d2abf4994b5ce.json | Add isQuaternion and isTexture in documentation | docs/api/en/textures/Texture.html | @@ -55,6 +55,13 @@ <h3>[property:Image image]</h3>
as long as video is playing - the [page:VideoTexture VideoTexture] class handles this automatically.
</p>
+ <h3>[property:Boolean isTexture]</h3>
+ <p>
+ Used to check whether this or derived classes are Textures. Default is *true*.<br /><br />
+
+ You sh... | true |
Other | mrdoob | three.js | 96950ea796c87d60c99de3fe4d6d2abf4994b5ce.json | Add isQuaternion and isTexture in documentation | docs/api/zh/math/Quaternion.html | @@ -44,6 +44,13 @@ <h3>[name]( [param:Float x], [param:Float y], [param:Float z], [param:Float w] )
<h2>Properties</h2>
+ <h3>[property:Boolean isQuaternion]</h3>
+ <p>
+ Used to check whether this or derived classes are Quaternions. Default is *true*.<br /><br />
+
+ You should not change this, as it is u... | true |
Other | mrdoob | three.js | 96950ea796c87d60c99de3fe4d6d2abf4994b5ce.json | Add isQuaternion and isTexture in documentation | docs/api/zh/textures/Texture.html | @@ -54,6 +54,14 @@ <h3>[property:Image image]</h3>
并在视频播放时不断地更新这个纹理贴图。——[page:VideoTexture VideoTexture] 类会对此自动进行处理。
</p>
+ <h3>[property:Boolean isTexture]</h3>
+ <p>
+ 用于测试这个类或者派生类是否为Texture,默认为*true*。<br /><br />
+
+ 你不应当对这个属性进行改变,因为它在内部使用,以用于优化。
+ </p>
+
+
<h3>[property:array mipmaps]</h3>
<p>
... | true |
Other | mrdoob | three.js | b339e48103f6275ce60aa444e651832184d42c1c.json | Change Chinese documentation as well | docs/api/zh/materials/Material.html | @@ -243,7 +243,7 @@ <h3>[method:null dispose]()</h3>
<p> 处理材质。材质的纹理不会被处理。需要通过[page:Texture Texture]处理。
</p>
-<h3>[method:null onBeforeCompile]( [param:Object shader], [param:WebGLRenderer renderer] )</h3>
+<h3>[method:null onBeforeCompile]( [param:Shader shader], [param:WebGLRenderer renderer] )</h3>
<p> 在编译shader... | false |
Other | mrdoob | three.js | 3c2c01554505c69501431a9138828b4181c8f0f7.json | Fix correct return value | src/materials/Material.d.ts | @@ -272,7 +272,7 @@ export class Material extends EventDispatcher {
* @param shader Source code of the shader
* @param renderer WebGLRenderer Context that is initializing the material
*/
- onBeforeCompile ( shader : Object, renderer : WebGLRenderer ) : null
+ onBeforeCompile ( shader : Object, renderer : ... | false |
Other | mrdoob | three.js | 2bd6d155d42bb89e34734e5cdcff51b18e964753.json | Adjust the speed of Texture 2D array example | examples/webgl2_materials_texture2darray.html | @@ -96,7 +96,7 @@
var planeWidth = 50;
var planeHeight = 50;
- var depthStep = 0.5;
+ var depthStep = 0.4;
init();
animate(); | false |
Other | mrdoob | three.js | b3f6079deb184077edccd18da6cd6e08d5638ac1.json | Add Cinema 4D to glTF exporter list. | docs/manual/en/introduction/Loading-3D-models.html | @@ -63,6 +63,7 @@ <h2>Recommended workflow</h2>
<li><a href="https://www.foundry.com/products/modo" target="_blank" rel="noopener">Modo</a> by Foundry</li>
<li><a href="https://www.marmoset.co/toolbag/" target="_blank" rel="noopener">Toolbag</a> by Marmoset</li>
<li><a href="https://www.sidefx.com/products/hou... | false |
Other | mrdoob | three.js | aedee38e442893fa7ed13a91564846aae8d5506a.json | Fix export of TypeScript Math namespace | src/Three.d.ts | @@ -105,7 +105,7 @@ export * from './math/interpolants/DiscreteInterpolant';
export * from './math/interpolants/CubicInterpolant';
export * from './math/Interpolant';
export * from './math/Triangle';
-export * from './math/Math';
+export { _Math as Math } from './math/Math';
export * from './math/Spherical';
expor... | false |
Other | mrdoob | three.js | d7ed0a01cd4a93ad62f6fc5f1c6e957e2253896d.json | Fix MMDPhysics _updateBonePosition() | examples/js/animation/MMDPhysics.js | @@ -994,14 +994,8 @@ THREE.MMDPhysics = ( function () {
_getWorldTransformForBone: function () {
var manager = this.manager;
-
- var tr = manager.allocTransform();
- this.body.getMotionState().getWorldTransform( tr );
- var tr2 = manager.multiplyTransforms( tr, this.boneOffsetFormInverse );
-
- manager... | false |
Other | mrdoob | three.js | cc96ff069288d5979e9a056b82ff141a59827f32.json | Update code style | editor/js/Sidebar.Material.js | @@ -624,12 +624,13 @@ Sidebar.Material = function ( editor ) {
}
- if ( material.depthPacking !== undefined) {
+ if ( material.depthPacking !== undefined ) {
+
+ var depthPacking = parseInt( materialDepthPacking.getValue() );
+ if ( material.depthPacking !== depthPacking ) {
- var depthPacking = ... | false |
Other | mrdoob | three.js | 075a328281a6061ca3ff9aaca15cbced45c8007a.json | Add MeshToonMaterial to editor | editor/js/Sidebar.Material.js | @@ -84,6 +84,7 @@ Sidebar.Material = function ( editor ) {
'MeshNormalMaterial': 'MeshNormalMaterial',
'MeshLambertMaterial': 'MeshLambertMaterial',
'MeshPhongMaterial': 'MeshPhongMaterial',
+ 'MeshToonMaterial': 'MeshToonMaterial',
'MeshStandardMaterial': 'MeshStandardMaterial',
'MeshPhysicalMaterial':... | true |
Other | mrdoob | three.js | 075a328281a6061ca3ff9aaca15cbced45c8007a.json | Add MeshToonMaterial to editor | editor/js/Strings.js | @@ -207,6 +207,7 @@ var Strings = function ( config ) {
'sidebar/material/lightmap': 'Light Map',
'sidebar/material/aomap': 'AO Map',
'sidebar/material/emissivemap': 'Emissive Map',
+ 'sidebar/material/gradientmap': 'Gradient Map',
'sidebar/material/side': 'Side',
'sidebar/material/side/front': 'F... | true |
Other | mrdoob | three.js | c00575eb8fa92fd4041a4cf3b0afcc4785597859.json | Fix GLTFLoader DDSExtension | examples/js/loaders/GLTFLoader.js | @@ -2116,15 +2116,19 @@ THREE.GLTFLoader = ( function () {
return this.getDependency( 'texture', mapDef.index ).then( function ( texture ) {
- switch ( mapName ) {
-
- case 'aoMap':
- case 'emissiveMap':
- case 'metalnessMap':
- case 'normalMap':
- case 'roughnessMap':
- texture.format = THR... | false |
Other | mrdoob | three.js | d55958ea47ae293282e8c06667a0910c60d6f956.json | Add script to fix color maps | editor/js/Menubar.Edit.js | @@ -199,6 +199,53 @@ Menubar.Edit = function ( editor ) {
} );
options.add( option );
+ options.add( new UI.HorizontalRule() );
+
+ // Set textures to sRGB. See #15903
+
+ var option = new UI.Row();
+ option.setClass( 'option' );
+ option.setTextContent( strings.getKey( 'menubar/edit/fixcolormaps' ) );
+ option.o... | true |
Other | mrdoob | three.js | d55958ea47ae293282e8c06667a0910c60d6f956.json | Add script to fix color maps | editor/js/Strings.js | @@ -31,6 +31,7 @@ var Strings = function ( config ) {
'menubar/edit/clone': 'Clone',
'menubar/edit/delete': 'Delete (Del)',
'menubar/edit/minify_shaders': 'Minify Shaders',
+ 'menubar/edit/fixcolormaps': 'Fix Color Maps',
'menubar/add': 'Add',
'menubar/add/group': 'Group', | true |
Other | mrdoob | three.js | 702959ddc57b1e098fe4aa4f6bd9159b93ebdd5a.json | Update code style | examples/webgl_postprocessing_unreal_bloom_selective.html | @@ -106,9 +106,9 @@
rows: 6,
columns: 6,
size: 2,
- zOffset : 5,
- minLightness : 0,
- maxLightness : 0.1,
+ zOffset: 5,
+ minLightness: 0,
+ maxLightness: 0.1,
scene: "Scene with Glow"
};
@@ -128,12 +128,12 @@
camera = new THREE.PerspectiveCamera( 40, window.innerWidth /... | false |
Other | mrdoob | three.js | a621afdf8a20c0ef7cdd7e340d4b0f76bde46063.json | Allow box lightness to be set | examples/webgl_postprocessing_unreal_bloom_selective.html | @@ -107,6 +107,8 @@
columns: 6,
size: 2,
zOffset : 5,
+ minLightness : 0,
+ maxLightness : 0.1,
scene: "Scene with Glow"
};
@@ -199,24 +201,28 @@
folder.add( params, 'exposure', 0.1, 2 ).onChange( function ( value ) {
renderer.toneMappingExposure = Math.pow( value, 4.0 );
+ ... | false |
Other | mrdoob | three.js | 93962a10d762c1427dcd3649bdc99545c9ba3838.json | Remove animation loop | examples/webgl_postprocessing_unreal_bloom_selective.html | @@ -42,7 +42,6 @@
<script src="../build/three.js"></script>
- <script src="js/libs/stats.min.js"></script>
<script src="js/libs/dat.gui.min.js"></script>
<script src="js/postprocessing/EffectComposer.js"></script>
@@ -89,7 +88,7 @@
<script>
- var scene, camera, stats, geometry;
+ var scene, c... | false |
Other | mrdoob | three.js | e0caf08a836fa83e043c6e43c7c2fb07d91c66fd.json | Reduce initial bloomed boxes | examples/webgl_postprocessing_unreal_bloom_selective.html | @@ -292,7 +292,7 @@
} ) );
box.position.set( x, y, 0 );
scene.add( box );
- if ( Math.random() < 0.5 ) box.layers.enable( BLOOM_SCENE );
+ if ( Math.random() < 0.125 ) box.layers.enable( BLOOM_SCENE );
}
| false |
Other | mrdoob | three.js | 3434106cef5a8c0770d68b3b3b0e782ab60655a7.json | Add example to file list | examples/files.js | @@ -273,7 +273,8 @@ var files = {
"webgl_postprocessing_sobel",
"webgl_postprocessing_ssao",
"webgl_postprocessing_taa",
- "webgl_postprocessing_unreal_bloom"
+ "webgl_postprocessing_unreal_bloom",
+ "webgl_postprocessing_unreal_bloom_selective"
],
"webgl / advanced": [
"webgl_buffergeometry", | false |
Other | mrdoob | three.js | 6f82a77b33d69e324f658eb03197e84c21a1ca91.json | remove Geometry warning | src/objects/Points.js | @@ -143,14 +143,6 @@ Points.prototype = Object.assign( Object.create( Object3D.prototype ), {
var geometry = this.geometry;
var m, ml, name;
- if ( ! geometry.isBufferGeometry && geometry.morphTargets !== undefined && geometry.morphTargets.length > 0 ) {
-
- console.error( 'THREE.Points.updateMorphTargets() ... | false |
Other | mrdoob | three.js | c47cb7ea60086457318bb5fa02b01935aea58870.json | Change camera angle to degrees | examples/webgl_postprocessing_unreal_bloom_selective.html | @@ -114,7 +114,7 @@
rows: 6,
columns: 6,
size: 2,
- cameraAngle: Math.PI * 0.5,
+ cameraAngle: 90,
scene: "Scene with Glow"
};
@@ -247,10 +247,10 @@
folder = gui.addFolder( 'Camera Position' );
- folder.add( params, 'cameraAngle', 0, Math.PI * 2 ).step( 0.001 ).onChange( functi... | false |
Other | mrdoob | three.js | 3bfb9eeca6e7d958a91c65a0b9283086b60d6772.json | Update code style | 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
+ <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/Te... | false |
Other | mrdoob | three.js | d21e2691910b917b64db2228c06d7aa210471638.json | Add selective bloom example | examples/webgl_postprocessing_unreal_bloom_selective.html | @@ -0,0 +1,314 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - postprocessing - unreal bloom selective</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 {
+ color: #fff;
+ f... | false |
Other | mrdoob | three.js | c5f771fbb43056dd862ba1d87d531fa2418030c4.json | Add check for bounding sphere | editor/js/Sidebar.Geometry.js | @@ -179,6 +179,11 @@ Sidebar.Geometry = function ( editor ) {
}
+ if ( geometry.boundingSphere === null ) {
+
+ geometry.computeBoundingSphere();
+
+ }
geometryBoundingSphere.setValue( Math.floor( geometry.boundingSphere.radius * 1000 ) / 1000 );
} else { | false |
Other | mrdoob | three.js | 274503f36d26803216d2cb3c5687ed44445f033b.json | remove author line | src/objects/Points.js | @@ -8,7 +8,6 @@ import { BufferGeometry } from '../core/BufferGeometry.js';
/**
* @author alteredq / http://alteredqualia.com/
- * @author Lewy Blue / https://discoverthreejs.com/
*/
function Points( geometry, material ) { | false |
Other | mrdoob | three.js | b4734f2dad51aecf65d3d764f45751e42162da83.json | Accomodate additional WebXR changes | examples/js/vr/WebVR.js | @@ -81,7 +81,15 @@ var WEBVR = {
if ( currentSession === null ) {
- device.requestSession( { immersive: true, exclusive: true /* DEPRECATED */ } ).then( onSessionStarted );
+ if (device) {
+
+ device.requestSession( { immersive: true, exclusive: true /* DEPRECATED */ } ).then( onSessionStarted );
... | true |
Other | mrdoob | three.js | b4734f2dad51aecf65d3d764f45751e42162da83.json | Accomodate additional WebXR changes | src/renderers/WebGLRenderer.js | @@ -189,7 +189,8 @@ function WebGLRenderer( parameters ) {
antialias: _antialias,
premultipliedAlpha: _premultipliedAlpha,
preserveDrawingBuffer: _preserveDrawingBuffer,
- powerPreference: _powerPreference
+ powerPreference: _powerPreference,
+ xrCompatible: true
};
// event listeners must be ... | true |
Other | mrdoob | three.js | b4734f2dad51aecf65d3d764f45751e42162da83.json | Accomodate additional WebXR changes | src/renderers/webvr/WebXRManager.js | @@ -115,8 +115,11 @@ function WebXRManager( renderer ) {
frameOfReference = value;
- renderer.setFramebuffer( session.baseLayer.framebuffer );
+ if ( session.baseLayer && session.baseLayer.framebuffer ) {
+ renderer.setFramebuffer( session.baseLayer.framebuffer );
+
+ }
animation.setContext( session );... | true |
Other | mrdoob | three.js | 85115334dfb18e1ccc32e8628a2238aed0bba56c.json | Remove outdated type definitions in uniforms | examples/js/effects/OutlineEffect.js | @@ -66,9 +66,9 @@ THREE.OutlineEffect = function ( renderer, parameters ) {
};
var uniformsChunk = {
- outlineThickness: { type: "f", value: defaultThickness },
- outlineColor: { type: "c", value: defaultColor },
- outlineAlpha: { type: "f", value: defaultAlpha }
+ outlineThickness: { value: defaultThickness ... | true |
Other | mrdoob | three.js | 85115334dfb18e1ccc32e8628a2238aed0bba56c.json | Remove outdated type definitions in uniforms | examples/js/shaders/DepthLimitedBlurShader.js | @@ -5,14 +5,14 @@ THREE.DepthLimitedBlurShader = {
'PERSPECTIVE_CAMERA': 1
},
uniforms: {
- 'tDiffuse': { type: 't', value: null },
- 'size': { type: 'v2', value: new THREE.Vector2( 512, 512 ) },
- 'sampleUvOffsets': { type: 'v2v', value: [ new THREE.Vector2( 0, 0 ) ] },
- 'sampleWeights': { type: '1fv', val... | true |
Other | mrdoob | three.js | 85115334dfb18e1ccc32e8628a2238aed0bba56c.json | Remove outdated type definitions in uniforms | examples/js/shaders/LuminosityHighPassShader.js | @@ -11,11 +11,11 @@ THREE.LuminosityHighPassShader = {
uniforms: {
- "tDiffuse": { type: "t", value: null },
- "luminosityThreshold": { type: "f", value: 1.0 },
- "smoothWidth": { type: "f", value: 1.0 },
- "defaultColor": { type: "c", value: new THREE.Color( 0x000000 ) },
- "defaultOpacity": { type: "f", v... | true |
Other | mrdoob | three.js | 85115334dfb18e1ccc32e8628a2238aed0bba56c.json | Remove outdated type definitions in uniforms | examples/js/shaders/SAOShader.js | @@ -9,23 +9,23 @@ THREE.SAOShader = {
},
uniforms: {
- 'tDepth': { type: 't', value: null },
- 'tDiffuse': { type: 't', value: null },
- 'tNormal': { type: 't', value: null },
- 'size': { type: 'v2', value: new THREE.Vector2( 512, 512 ) },
-
- 'cameraNear': { type: 'f', value: 1 },
- 'cameraFar': { type: 'f... | true |
Other | mrdoob | three.js | 85115334dfb18e1ccc32e8628a2238aed0bba56c.json | Remove outdated type definitions in uniforms | examples/webgl_materials_lightmap.html | @@ -102,10 +102,10 @@
var vertexShader = document.getElementById( 'vertexShader' ).textContent;
var fragmentShader = document.getElementById( 'fragmentShader' ).textContent;
var uniforms = {
- topColor: { type: "c", value: new THREE.Color( 0x0077ff ) },
- bottomColor: { type: "c", value: new THRE... | true |
Other | mrdoob | three.js | b2d8566d015b908e0b6b1cb75d111d53a967f462.json | update error message | src/objects/Points.js | @@ -146,7 +146,7 @@ Points.prototype = Object.assign( Object.create( Object3D.prototype ), {
if ( ! geometry.isBufferGeometry && geometry.morphTargets !== undefined && geometry.morphTargets.length > 0 ) {
- console.error( 'THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeome... | false |
Other | mrdoob | three.js | 760da5943d6d31caa739772f15704b95f8e3a2ae.json | Improve code style | examples/js/loaders/SVGLoader.js | @@ -122,8 +122,16 @@ THREE.SVGLoader.prototype = {
transformStack.pop();
- if ( transformStack.length > 0 ) currentTransform.copy( transformStack[ transformStack.length - 1 ] );
- else currentTransform.identity();
+ if ( transformStack.length > 0 ) {
+
+ currentTransform.copy( transformStack[ tran... | false |
Other | mrdoob | three.js | 849ae475584dcd49293a57ec1c2edde7269693a2.json | Remove a wrong comment | src/renderers/webgl/WebGLRenderLists.d.ts | @@ -45,9 +45,5 @@ export class WebGLRenderList {
export class WebGLRenderLists {
dispose(): void;
- /**
- *
- * returns {<String> : <WebGLRenderList>}
- */
get(scene: Scene, camera: Camera): WebGLRenderList;
} | false |
Other | mrdoob | three.js | 0ed9bdc25b3b5474c3797ade3f444a506f3e0a99.json | Make normals and uvs optional | examples/js/loaders/SVGLoader.js | @@ -1143,8 +1143,9 @@ THREE.SVGLoader.pointsToStrokeWithBuffers = function () {
// This function can be called to update existing arrays or buffers.
// Accepts same parameters as pointsToStroke, plus the buffers and optional offset.
// Param vertexOffset: Offset vertices to start writing in the buffers (3 elem... | false |
Other | mrdoob | three.js | a4b1b6df12603da17e5cb0d7e5325d6649106c39.json | Add stroke generation to SVGLoader | examples/files.js | @@ -44,6 +44,7 @@ var files = {
"webgl_geometry_terrain_raycast",
"webgl_geometry_text",
"webgl_geometry_text_shapes",
+ "webgl_geometry_text_stroke",
"webgl_hdr",
"webgl_helpers",
"webgl_interactive_buffergeometry", | true |
Other | mrdoob | three.js | a4b1b6df12603da17e5cb0d7e5325d6649106c39.json | Add stroke generation to SVGLoader | examples/js/loaders/SVGLoader.js | @@ -56,37 +56,37 @@ THREE.SVGLoader.prototype = {
case 'path':
style = parseStyle( node, style );
- if ( node.hasAttribute( 'd' ) && isVisible( style ) ) path = parsePathNode( node, style );
+ if ( node.hasAttribute( 'd' ) ) path = parsePathNode( node, style );
break;
case 'rect':
... | true |
Other | mrdoob | three.js | a4b1b6df12603da17e5cb0d7e5325d6649106c39.json | Add stroke generation to SVGLoader | examples/models/svg/lineJoinsAndCaps.svg | @@ -0,0 +1,428 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www... | true |
Other | mrdoob | three.js | a4b1b6df12603da17e5cb0d7e5325d6649106c39.json | Add stroke generation to SVGLoader | examples/models/svg/threejs.svg | @@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www... | true |
Other | mrdoob | three.js | a4b1b6df12603da17e5cb0d7e5325d6649106c39.json | Add stroke generation to SVGLoader | examples/webgl_geometry_text_stroke.html | @@ -0,0 +1,168 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>three.js webgl - Simple text from json</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;
+ backgrou... | true |
Other | mrdoob | three.js | a4b1b6df12603da17e5cb0d7e5325d6649106c39.json | Add stroke generation to SVGLoader | examples/webgl_loader_svg.html | @@ -44,7 +44,7 @@
<script>
- var renderer, stats, scene, camera, gui, currentURL;
+ var renderer, stats, scene, camera, gui, guiData;
init();
animate();
@@ -81,7 +81,7 @@
window.addEventListener( 'resize', onWindowResize, false );
- document.body.addEventListener( 'dblclick', function (... | true |
Other | mrdoob | three.js | 02e0322ea52c10c1f2e097b2a9a6f4fecc1055e6.json | Fix tab issue | utils/modularize.js | @@ -24,8 +24,8 @@ var files = [
{ path: 'loaders/OBJLoader.js', ignoreList: [] },
{ path: 'loaders/MTLLoader.js', ignoreList: [] },
- { path: 'pmrem/PMREMCubeUVPacker.js', ignoreList: [] },
- { path: 'pmrem/PMREMGenerator.js', ignoreList: [] },
+ { path: 'pmrem/PMREMCubeUVPacker.js', ignoreList: [] },
+ { path:... | false |
Other | mrdoob | three.js | 7e6324dcb106642e05973b5230d934d9036224db.json | Add description for Object3D.renderOrder | src/core/Object3D.d.ts | @@ -120,6 +120,9 @@ export class Object3D extends EventDispatcher {
*/
frustumCulled: boolean;
+ /**
+ * Overrides the default rendering order of scene graph objects, from lowest to highest renderOrder. Opaque and transparent objects remain sorted independently though. When this property is set for an instanc... | false |
Other | mrdoob | three.js | 3a7809fbf0053305483f16ee723482f783f6437f.json | add missing import | examples/jsm/exporters/GLTFExporter.js | @@ -10,6 +10,7 @@ import {
ClampToEdgeWrapping,
DoubleSide,
InterpolateDiscrete,
+ InterpolateLinear,
LinearFilter,
LinearMipMapLinearFilter,
LinearMipMapNearestFilter, | false |
Other | mrdoob | three.js | fd6f38dc3b6e3264ada9d6387085840138a8da33.json | Add docs for stencil operations | docs/api/en/constants/Materials.html | @@ -92,7 +92,52 @@ <h2>Texture Combine Operations</h2>
[page:Constant MixOperation] uses reflectivity to blend between the two colors.<br />
[page:Constant AddOperation] adds the two colors.
</p>
+
+ <h2>Stencil Functions</h2>
+ <code>
+ THREE.NeverStencilFunc
+ THREE.LessStencilFunc
+ THREE.EqualStenci... | true |
Other | mrdoob | three.js | fd6f38dc3b6e3264ada9d6387085840138a8da33.json | Add docs for stencil operations | docs/api/en/materials/Material.html | @@ -123,6 +123,36 @@ <h3>[property:Boolean depthWrite]</h3>
When drawing 2D overlays it can be useful to disable the depth writing in order to layer several things together without creating z-index artifacts.
</p>
+ <h3>[property:Boolean stencilWrite]</h3>
+ <p>
+ Whether rendering this material has any effe... | true |
Other | mrdoob | three.js | 233aa3edf3e0991aafe5dbc2b548993b4bf407ea.json | Improve implementation accordingly to PR reviews
Signed-off-by: Riccardo Padovani <rpadovani@nextbit.it> | examples/js/loaders/GLTFLoader.js | @@ -1595,11 +1595,11 @@ THREE.GLTFLoader = ( function () {
function createMultiPassGeometryKey( geometry, primitives ) {
- var key = createPrimitiveKey( geometry );
+ var key = geometry.uuid;
for ( var i = 0, il = primitives.length; i < il; i ++ ) {
- key += i + primitives[ i ].uuid;
+ key += i + cre... | false |
Other | mrdoob | three.js | a57ec27fc6ba95f69b9ca75ea62b8e87e1b3a0ed.json | Add missing "else" keyword | src/renderers/webgl/WebGLRenderLists.js | @@ -42,7 +42,7 @@ function reversePainterSortStable( a, b ) {
return a.renderOrder - b.renderOrder;
- } if ( a.z !== b.z ) {
+ } else if ( a.z !== b.z ) {
return b.z - a.z;
| false |
Other | mrdoob | three.js | 9833a661c3f6a89ea60ecb08fe003895382c6778.json | Add images to links in examples page | examples/index.html | @@ -6,11 +6,6 @@
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="../files/favicon.ico" />
<link rel="stylesheet" type="text/css" href="../files/main.css">
- <style>
- #panel #content .link {
- display: block;
- ... | true |
Other | mrdoob | three.js | 9833a661c3f6a89ea60ecb08fe003895382c6778.json | Add images to links in examples page | files/main.css | @@ -464,6 +464,39 @@ iframe {
}
+.card {
+ border-radius: 3px;
+ overflow: hidden;
+ background-color: #f7f7f7;
+ padding-bottom: 6px;
+ margin-bottom: 16px;
+}
+
+.card.selected {
+ box-shadow: 0 0 0 3px var(--color-blue);
+ text-decoration: none !important;
+}
+
+.card .cover {
+ padding-bottom: 62.5%; /* 8:5 as... | true |
Other | mrdoob | three.js | 43b31847ac253eee7da4f4eec8a9158814ae6d08.json | Move node association assignment down a few lines | examples/jsm/loaders/GLTFLoader.js | @@ -3173,8 +3173,6 @@ var GLTFLoader = ( function () {
assignExtrasToUserData( node, nodeDef );
- parser.associations.set( node, { type: 'nodes', index: nodeIndex } );
-
if ( nodeDef.extensions ) addUnknownExtensionsToUserData( extensions, node, nodeDef );
if ( nodeDef.matrix !== undefined ) {
@@ -3... | false |
Other | mrdoob | three.js | e507c44e4c853e92475cddf86105831fe468481d.json | add workaround for invalid rawModel entries
seems to be connections with null relationships | examples/js/loaders/FBXLoader.js | @@ -2491,6 +2491,11 @@ THREE.FBXLoader = ( function () {
if ( modelID !== undefined ) {
var rawModel = fbxTree.Objects.Model[ modelID.toString() ];
+
+ if (!rawModel) {
+ console.log("invalid rawModel", modelID, child);
+ return;
+ }
va... | false |
Other | mrdoob | three.js | 921cfea20a44805b3aecfc1c88c6bfa7bafa0e24.json | Add "finish" test | src/renderers/webgl/WebGLRenderLists.js | @@ -159,6 +159,7 @@ function WebGLRenderList() {
}
return {
+ renderItems: renderItems,
opaque: opaque,
transparent: transparent,
| true |
Other | mrdoob | three.js | 921cfea20a44805b3aecfc1c88c6bfa7bafa0e24.json | Add "finish" test | test/unit/src/renderers/webgl/WebGLRenderLists.tests.js | @@ -297,9 +297,69 @@ export default QUnit.module( 'Renderers', () => {
} );
- QUnit.todo( 'finish', ( assert ) => {
+ QUnit.test( 'finish', ( assert ) => {
+
+ var list = new WebGLRenderList();
+ var obj = { id: 'A', renderOrder: 0 };
+ var mat = { transparent: false, program: { id: 0 } };
+ var... | true |
Other | mrdoob | three.js | 14cce3958d38bb990d4e208d0f40659a77123025.json | add sort test | test/unit/src/renderers/webgl/WebGLRenderLists.tests.js | @@ -75,22 +75,22 @@ export default QUnit.module( 'Renderers', () => {
} );
- QUnit.todo( 'push', ( assert ) => {
+ QUnit.test( 'push', ( assert ) => {
var list = new WebGLRenderList();
- var objA = { id: 'A' };
+ var objA = { id: 'A', renderOrder: 0 };
var matA = { transparent: true, progr... | false |
Other | mrdoob | three.js | c03c2d3a10c4c85a33ef917e0cd25874cf91e6c4.json | Remove ability to move camera selection menu | editor/css/dark.css | @@ -239,31 +239,13 @@ select {
width: 100%;
}
- #cameraSelect[layout='topLeft']{
- margin-top: 32px;
- left: 0;
- top : 0;
- }
-
- #cameraSelect[layout='topRight']{
+ #cameraSelect{
margin-top: 32px;
margin-right: 300px;
right: 0;
top : 0;
}
- #cameraSelect[layout='bottomLeft']{
- bottom: 0;
... | true |
Other | mrdoob | three.js | c03c2d3a10c4c85a33ef917e0cd25874cf91e6c4.json | Remove ability to move camera selection menu | editor/css/light.css | @@ -232,31 +232,13 @@ select {
width: 100%;
}
- #cameraSelect[layout='topLeft']{
- margin-top: 32px;
- left: 0;
- top : 0;
- }
-
- #cameraSelect[layout='topRight']{
+ #cameraSelect{
margin-top: 32px;
margin-right: 300px;
right: 0;
top : 0;
}
- #cameraSelect[layout='bottomLeft']{
- bottom: 0;
... | true |
Other | mrdoob | three.js | c03c2d3a10c4c85a33ef917e0cd25874cf91e6c4.json | Remove ability to move camera selection menu | editor/js/Config.js | @@ -21,7 +21,7 @@ var Config = function () {
'project/renderer/gammaOutput': false,
'project/renderer/shadows': true,
'project/renderer/showHelpers': true,
- 'project/renderer/sceneCameras': 'topLeft',
+ 'project/renderer/sceneCameras': 'topRight',
'project/renderer/showSceneCameras': true,
'project/... | true |
Other | mrdoob | three.js | c03c2d3a10c4c85a33ef917e0cd25874cf91e6c4.json | Remove ability to move camera selection menu | editor/js/Sidebar.Settings.js | @@ -74,34 +74,6 @@ Sidebar.Settings = function ( editor ) {
container.add( themeRow );
- // scene camera position
-
- var sceneCameraRow = new UI.Row();
- container.add( sceneCameraRow );
-
- var sceneCameraSelection = new UI.Select().setWidth( '150px' );
- sceneCameraSelection.setOptions( {
- topLeft: 'Top Left... | true |
Other | mrdoob | three.js | c03c2d3a10c4c85a33ef917e0cd25874cf91e6c4.json | Remove ability to move camera selection menu | editor/js/Strings.js | @@ -244,9 +244,8 @@ var Strings = function ( config ) {
'sidebar/settings/theme': 'Theme',
'sidebar/settings/theme/light': 'light',
'sidebar/settings/theme/dark': 'dark',
- 'sidebar/settings/sceneCameras': 'Camera Select Menu',
- 'sidebar/settings/showSceneCameras': 'Show Camera Select Menu',
- 'sideb... | true |
Other | mrdoob | three.js | c03c2d3a10c4c85a33ef917e0cd25874cf91e6c4.json | Remove ability to move camera selection menu | editor/js/Viewport.js | @@ -176,7 +176,6 @@ var Viewport = function ( editor ) {
signals.sceneCamerasChanged.add( function () {
- sceneCameraDisplay.dom.setAttribute( 'layout', config.getKey( 'project/renderer/sceneCameras' ) || 'topLeft' );
sceneCameraDisplay.setDisplay( config.getKey( 'project/renderer/showSceneCameras' ) === true... | true |
Other | mrdoob | three.js | 7c73f19684715f6bc7e254033782d885da4d4cb0.json | Update element z-index and strings | editor/css/dark.css | @@ -95,6 +95,10 @@ select {
padding-right: 8px;
}
+ #menubar .menu * {
+ z-index: 2;
+ }
+
#menubar .menu.right {
float: right;
cursor: auto;
@@ -227,7 +231,7 @@ select {
#cameraSelect {
position: absolute;
- z-index: 10;
+ z-index: 1;
padding: 10px;
}
| true |
Other | mrdoob | three.js | 7c73f19684715f6bc7e254033782d885da4d4cb0.json | Update element z-index and strings | editor/css/light.css | @@ -91,6 +91,10 @@ select {
padding-right: 8px;
}
+ #menubar .menu * {
+ z-index: 2;
+ }
+
#menubar .menu.right {
float: right;
cursor: auto;
@@ -220,7 +224,7 @@ select {
#cameraSelect {
position: absolute;
- z-index: 10;
+ z-index: 1;
padding: 10px;
}
| true |
Other | mrdoob | three.js | 7c73f19684715f6bc7e254033782d885da4d4cb0.json | Update element z-index and strings | editor/js/Strings.js | @@ -244,8 +244,8 @@ var Strings = function ( config ) {
'sidebar/settings/theme': 'Theme',
'sidebar/settings/theme/light': 'light',
'sidebar/settings/theme/dark': 'dark',
- 'sidebar/settings/sceneCameras': 'Scene Cameras',
- 'sidebar/settings/showSceneCameras': 'Show Scene Cameras',
+ 'sidebar/setting... | true |
Other | mrdoob | three.js | de83fcd1229c5cdb9377c0ea02eef041689e0d81.json | Change only main viewport | editor/css/dark.css | @@ -228,8 +228,9 @@ select {
#cameraSelect {
position: absolute;
z-index: 10;
+ padding: 10px;
}
-
+
#cameraSelect * {
width: 100%;
}
@@ -250,6 +251,7 @@ select {
#cameraSelect[layout='bottomLeft']{
bottom: 0;
left: 0;
+ padding-bottom: 60px;
}
#cameraSelect[layout='bottomRight']{ | true |
Other | mrdoob | three.js | de83fcd1229c5cdb9377c0ea02eef041689e0d81.json | Change only main viewport | editor/css/light.css | @@ -221,6 +221,7 @@ select {
#cameraSelect {
position: absolute;
z-index: 10;
+ padding: 10px;
}
#cameraSelect * {
@@ -243,6 +244,7 @@ select {
#cameraSelect[layout='bottomLeft']{
bottom: 0;
left: 0;
+ padding-bottom: 60px;
}
#cameraSelect[layout='bottomRight']{ | true |
Other | mrdoob | three.js | de83fcd1229c5cdb9377c0ea02eef041689e0d81.json | Change only main viewport | editor/js/Viewport.js | @@ -137,18 +137,16 @@ var Viewport = function ( editor ) {
// Displaying scene cameras
- var cameras = {};
+ var cameras = {
+ [ camera.uuid ]: 'Main Camera'
+ };
var sceneCameraDisplay = new UI.Row();
sceneCameraDisplay.setId( 'cameraSelect' );
sceneCameraDisplay.dom.setAttribute( 'layout', config.getKe... | true |
Other | mrdoob | three.js | 9dc0974f35a47a5b7bf78ce28d1a96a3ce3dfae4.json | Update code style | editor/css/light.css | @@ -223,33 +223,33 @@ select {
z-index: 10;
}
- #cameraSelect * {
- width: 100%;
- }
-
- #cameraSelect[layout='topLeft']{
- margin-top: 32px;
- left: 0;
- top : 0;
- }
-
- #cameraSelect[layout='topRight']{
- margin-top: 32px;
- margin-right: 300px;
- right: 0;
- top : 0;
- }
-
- #cameraS... | false |
Other | mrdoob | three.js | e8845a43a912e140921120a06f9698bd1631e183.json | Update code style | editor/css/light.css | @@ -222,34 +222,34 @@ select {
position: absolute;
z-index: 10;
}
-
- #cameraSelect * {
- width: 100%;
- }
-
- #cameraSelect[layout='topLeft']{
- margin-top: 32px;
- left: 0;
- top : 0;
- }
-
- #cameraSelect[layout='topRight']{
- margin-top: 32px;
- margin-right: 300px;
- right: 0;
- top : 0;
- }
-
- #ca... | false |
Other | mrdoob | three.js | 680f11713f384491b0853993a94dace366ab18d9.json | Update code style | editor/css/dark.css | @@ -235,7 +235,7 @@ select {
}
#cameraSelect[layout='topLeft']{
- margin-top: 32px;
+ margin-top: 32px;
left: 0;
top : 0;
}
@@ -248,12 +248,12 @@ select {
}
#cameraSelect[layout='bottomLeft']{
- bottom: 0;
+ bottom: 0;
left: 0;
}
#cameraSelect[layout='bottomRight']{
- bottom: 0;
+ botto... | false |
Other | mrdoob | three.js | 0e4318bf54279ffba5ce0103b31c58c6a43f2719.json | Update code style | editor/js/Sidebar.Settings.js | @@ -74,41 +74,48 @@ Sidebar.Settings = function ( editor ) {
container.add( themeRow );
+ // scene camera position
+
var sceneCameraRow = new UI.Row();
- container.add(sceneCameraRow);
+ container.add( sceneCameraRow );
- var sceneCameraSelection = new UI.Select().setWidth('150px');
- sceneCameraSelection.set... | true |
Other | mrdoob | three.js | 0e4318bf54279ffba5ce0103b31c58c6a43f2719.json | Update code style | editor/js/Viewport.js | @@ -140,58 +140,67 @@ var Viewport = function ( editor ) {
var cameras = {};
var sceneCameraDisplay = new UI.Row();
- sceneCameraDisplay.setId('cameraSelect');
- sceneCameraDisplay.dom.setAttribute('layout', config.getKey('project/renderer/sceneCameras') || 'topLeft');
- sceneCameraDisplay.setDisplay('none');
- d... | true |
Other | mrdoob | three.js | 450e71cba34aa0524e67341548dc7635cdf3fc7f.json | Reset branch to dev | editor/js/Editor.js | @@ -80,7 +80,6 @@ var Editor = function () {
this.loader = new Loader( this );
this.camera = this.DEFAULT_CAMERA.clone();
- this.sceneCameras = [];
this.scene = new THREE.Scene();
this.scene.name = 'Scene'; | true |
Other | mrdoob | three.js | 450e71cba34aa0524e67341548dc7635cdf3fc7f.json | Reset branch to dev | editor/js/Sidebar.Object.js | @@ -8,8 +8,6 @@ Sidebar.Object = function ( editor ) {
var signals = editor.signals;
- var sceneCameras = editor.sceneCameras;
-
var container = new UI.Panel();
container.setBorderTop( '0' );
container.setPaddingTop( '20px' );
@@ -314,41 +312,6 @@ Sidebar.Object = function ( editor ) {
container.add( ob... | true |
Other | mrdoob | three.js | 450e71cba34aa0524e67341548dc7635cdf3fc7f.json | Reset branch to dev | editor/js/Sidebar.Settings.Viewport.js | @@ -6,42 +6,14 @@ Sidebar.Settings.Viewport = function ( editor ) {
var signals = editor.signals;
var strings = editor.strings;
- var config = editor.config;
var container = new UI.Div();
container.add( new UI.Break() );
container.add( new UI.Text( strings.getKey( 'sidebar/settings/viewport/grid' ) ).se... | true |
Other | mrdoob | three.js | 450e71cba34aa0524e67341548dc7635cdf3fc7f.json | Reset branch to dev | editor/js/Storage.js | @@ -6,7 +6,7 @@ var Storage = function () {
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
- if ( indexedDB === undefined ) {
+ if ( indexedDB === undefined ) {
console.warn( 'Storage: IndexedDB not available.' );
return { init: function () {}, ge... | true |
Other | mrdoob | three.js | 450e71cba34aa0524e67341548dc7635cdf3fc7f.json | Reset branch to dev | editor/js/Strings.js | @@ -97,7 +97,6 @@ var Strings = function ( config ) {
'sidebar/object/frustumcull': 'Frustum Cull',
'sidebar/object/renderorder': 'Render Order',
'sidebar/object/userdata': 'User data',
- 'sidebar/object/view': 'Show View',
'sidebar/geometry/type': 'Type',
'sidebar/geometry/new': 'New',
@@ -253,... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.