Skip to content

Commit

Permalink
Merge remote-tracking branch 'mrdoob/dev' into sheen
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSturk committed Aug 20, 2019
2 parents bbfee95 + a6618d8 commit b2ab31d
Show file tree
Hide file tree
Showing 163 changed files with 4,555 additions and 8,023 deletions.
2,327 changes: 954 additions & 1,373 deletions build/three.js

Large diffs are not rendered by default.

1,804 changes: 901 additions & 903 deletions build/three.min.js

Large diffs are not rendered by default.

2,327 changes: 954 additions & 1,373 deletions build/three.module.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/api/en/audio/Audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ <h3>[property:Number startTime]</h3>
<h3>[property:Number offset]</h3>
<p>An offset to the time within the audio buffer that playback should begin. Same as the *offset* paramter of [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start AudioBufferSourceNode.start](). Default is *0*.</p>

<h3>[property:Number duration]</h3>
<p>Overrides the duration of the audio. Same as the *duration* paramter of [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start AudioBufferSourceNode.start](). Default is *undefined* to play the whole buffer.</p>

<h3>[property:String source]</h3>
<p>An [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode AudioBufferSourceNode] created
using [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBufferSource AudioContext.createBufferSource]().</p>
Expand Down
8 changes: 8 additions & 0 deletions docs/api/en/core/Raycaster.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ <h3>[property:float near]</h3>
This value shouldn't be negative and should be smaller than the far property.
</p>

<h3>[property:Camera camera]</h3>
<p>
The camera to use when raycasting against view-dependent objects such as billboarded objects like [page:Sprites]. This field
can be set manually or is set when calling "setFromCamera".

Defaults to null.
</p>

<h3>[property:Object params]</h3>
<p>
An object with the following properties:
Expand Down
2 changes: 1 addition & 1 deletion docs/api/en/math/Matrix4.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2>A Note on Row-Major and Column-Major Ordering</h2>

This means that calling
<code>
var m = new Matrix4();
var m = new THREE.Matrix4();

m.set( 11, 12, 13, 14,
21, 22, 23, 24,
Expand Down
2 changes: 1 addition & 1 deletion docs/api/en/scenes/FogExp2.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
<h1>[name]</h1>

<p class="desc">This class contains the parameters that define exponential fog, i.e., that grows exponentially denser with the distance.</p>
<p class="desc">This class contains the parameters that define exponential squared fog, which gives a clear view near the camera and a faster than exponentially densening fog farther from the camera.</p>


<h2>Constructor</h2>
Expand Down
4 changes: 2 additions & 2 deletions docs/manual/en/introduction/Creating-a-scene.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2>Before we start</h2>
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset=utf-8&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;My first three.js app&lt;/title&gt;
&lt;style&gt;
body { margin: 0; }
Expand Down Expand Up @@ -118,7 +118,7 @@ <h2>Animating the cube</h2>
<h2>The result</h2>
<p>Congratulations! You have now completed your first three.js application. It's simple, you have to start somewhere.</p>

<p>The full code is available below. Play around with it to get a better understanding of how it works.</p>
<p>The full code is available below and as an editable [link:https://jsfiddle.net/mkba0ecu/ live example]. Play around with it to get a better understanding of how it works.</p>

<code>
&lt;html&gt;
Expand Down
7 changes: 6 additions & 1 deletion docs/manual/en/introduction/How-to-use-WebGL2.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ <h2>Workflow</h2>
automatically convert the built-in material's shader code to GLSL ES 3.00.
</p>

<p>
Since you are manually creating the WebGL 2 rendering context, you also have to pass in all necessary context attributes.
Note: It's not possible to modify these attributes after the context has been created, so passing them to the WebGLRenderer won't have any effect.
</p>

<code>
var canvas = document.createElement( 'canvas' );
var context = canvas.getContext( 'webgl2' );
var context = canvas.getContext( 'webgl2', { alpha: false } );
var renderer = new THREE.WebGLRenderer( { canvas: canvas, context: context } );
</code>

Expand Down
2 changes: 1 addition & 1 deletion docs/manual/zh/introduction/Creating-a-scene.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2>开始之前</h2>
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset=utf-8&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;My first three.js app&lt;/title&gt;
&lt;style&gt;
body { margin: 0; }
Expand Down
3 changes: 0 additions & 3 deletions editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
<script src="../examples/js/libs/chevrotain.min.js"></script> <!-- VRML -->
<script src="../examples/js/libs/jszip.min.js"></script>
<script src="../examples/js/libs/inflate.min.js"></script> <!-- FBX -->
<script src="../examples/js/libs/lzma.js"></script> <!-- CTM -->
<script src="../examples/js/libs/ctm.js"></script> <!-- CTM -->

<script src="../examples/js/loaders/AMFLoader.js"></script>
<script src="../examples/js/loaders/AWDLoader.js"></script>
Expand All @@ -45,7 +43,6 @@
<script src="../examples/js/loaders/TDSLoader.js"></script>
<script src="../examples/js/loaders/VRMLLoader.js"></script>
<script src="../examples/js/loaders/VTKLoader.js"></script>
<script src="../examples/js/loaders/ctm/CTMLoader.js"></script>

<script src="../examples/js/exporters/ColladaExporter.js"></script>
<script src="../examples/js/exporters/GLTFExporter.js"></script>
Expand Down
29 changes: 0 additions & 29 deletions editor/js/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,35 +140,6 @@ var Loader = function ( editor ) {

break;

case 'ctm':

reader.addEventListener( 'load', function ( event ) {

var data = new Uint8Array( event.target.result );

var stream = new CTM.Stream( data );
stream.offset = 0;

var loader = new THREE.CTMLoader();
loader.createModel( new CTM.File( stream ), function ( geometry ) {

geometry.sourceType = "ctm";
geometry.sourceFile = file.name;

var material = new THREE.MeshStandardMaterial();

var mesh = new THREE.Mesh( geometry, material );
mesh.name = filename;

editor.execute( new AddObjectCommand( editor, mesh ) );

} );

}, false );
reader.readAsArrayBuffer( file );

break;

case 'dae':

reader.addEventListener( 'load', function ( event ) {
Expand Down
3 changes: 0 additions & 3 deletions editor/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ const staticAssets = [
'../examples/js/libs/chevrotain.min.js',
'../examples/js/libs/jszip.min.js',
'../examples/js/libs/inflate.min.js',
'../examples/js/libs/lzma.js',
'../examples/js/libs/ctm.js',

'../examples/js/loaders/AMFLoader.js',
'../examples/js/loaders/AWDLoader.js',
Expand All @@ -36,7 +34,6 @@ const staticAssets = [
'../examples/js/loaders/TDSLoader.js',
'../examples/js/loaders/VRMLLoader.js',
'../examples/js/loaders/VTKLoader.js',
'../examples/js/loaders/ctm/CTMLoader.js',

'../examples/js/exporters/ColladaExporter.js',
'../examples/js/exporters/GLTFExporter.js',
Expand Down
22 changes: 11 additions & 11 deletions examples/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ var files = {
"webgl_loader_collada",
"webgl_loader_collada_kinematics",
"webgl_loader_collada_skinning",
"webgl_loader_ctm",
"webgl_loader_ctm_materials",
"webgl_loader_draco",
"webgl_loader_fbx",
"webgl_loader_fbx_nurbs",
Expand All @@ -103,7 +101,6 @@ var files = {
"webgl_loader_mmd",
"webgl_loader_mmd_pose",
"webgl_loader_mmd_audio",
"webgl_loader_nodes",
"webgl_loader_nrrd",
"webgl_loader_obj",
"webgl_loader_obj_mtl",
Expand Down Expand Up @@ -160,13 +157,10 @@ var files = {
"webgl_materials_envmaps",
"webgl_materials_envmaps_exr",
"webgl_materials_envmaps_hdr",
"webgl_materials_envmaps_hdr_nodes",
"webgl_materials_envmaps_parallax",
"webgl_materials_envmaps_pmrem_nodes",
"webgl_materials_grass",
"webgl_materials_lightmap",
"webgl_materials_matcap",
"webgl_materials_nodes",
"webgl_materials_normalmap",
"webgl_materials_normalmap_object_space",
"webgl_materials_parallaxmap",
Expand Down Expand Up @@ -194,7 +188,6 @@ var files = {
"webgl_materials_sheen",
"webgl_math_orientation_transform",
"webgl_mirror",
"webgl_mirror_nodes",
"webgl_modifier_simplifier",
"webgl_modifier_subdivision",
"webgl_modifier_tessellation",
Expand All @@ -215,7 +208,6 @@ var files = {
"webgl_panorama_equirectangular",
"webgl_performance",
"webgl_performance_doublesided",
"webgl_performance_nodes",
"webgl_performance_static",
"webgl_points_billboards",
"webgl_points_dynamic",
Expand Down Expand Up @@ -243,7 +235,6 @@ var files = {
"webgl_shadowmesh",
"webgl_skinning_simple",
"webgl_sprites",
"webgl_sprites_nodes",
"webgl_terrain_dynamic",
"webgl_test_memory",
"webgl_test_memory2",
Expand All @@ -253,6 +244,17 @@ var files = {
"webgl_water",
"webgl_water_flowmap"
],
"webgl / nodes": [
"webgl_loader_nodes",
"webgl_materials_envmaps_hdr_nodes",
"webgl_materials_envmaps_pmrem_nodes",
"webgl_materials_nodes",
"webgl_mirror_nodes",
"webgl_performance_nodes",
"webgl_postprocessing_nodes",
"webgl_postprocessing_nodes_pass",
"webgl_sprites_nodes",
],
"webgl / postprocessing": [
"webgl_postprocessing",
"webgl_postprocessing_advanced",
Expand All @@ -268,8 +270,6 @@ var files = {
"webgl_postprocessing_masking",
"webgl_postprocessing_ssaa",
"webgl_postprocessing_ssaa_unbiased",
"webgl_postprocessing_nodes",
"webgl_postprocessing_nodes_pass",
"webgl_postprocessing_outline",
"webgl_postprocessing_pixel",
"webgl_postprocessing_procedural",
Expand Down
2 changes: 1 addition & 1 deletion examples/js/controls/DragControls.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/**
* @author zz85 / https://github.com/zz85
* @author mrdoob / http://mrdoob.com
* Running this will allow you to drag three.js objects around the screen.
Expand Down
Loading

0 comments on commit b2ab31d

Please sign in to comment.