Commit Graph

168 Commits

Author SHA1 Message Date
Atrahasis
15d7eb53b3 [@types/three]: Improve material type casting, implementation and doc. (#27413) 2018-07-20 18:04:08 -07:00
Krzysztof Bogdan
097c9e20ad three.js add missing math.lerp and webglrenderer methods (#27317)
* Update three-core.d.ts

Add missing WebGLRenderer methods (getDrawingBufferSize, setDrawingBufferSize, getCurrentViewport)

* Update three-core.d.ts

remove unnecessary whitespace

* Add missing lerp method from Math namespace

* Fixed indentation & order
2018-07-20 17:37:25 -07:00
Krzysztof Bogdan
4b5508062f Add missing generateMipmaps field (#27325)
Add missing generateMipmaps field from WebGLRenderTargetOptions
2018-07-20 17:36:43 -07:00
Atrahasis
96b2b69caa [@types/three]: Fix Object3D#clone. (#27058) 2018-07-05 10:12:41 -07:00
Atrahasis
fce63df114 [@types/three]: Fix property compatibility. 2018-06-29 21:05:20 +02:00
Paul van Brenk
8233b2c3fc
Merge pull request #26772 from Astrak/r93-updates-Object3D
[types/three]: Update Object3D based classes.
2018-06-28 13:16:49 -07:00
Paul van Brenk
6dcf5579f3
Merge pull request #26723 from stavenko/dev/fix-geometry-buffer-attributes
[@types/three.core.BufferGeometry] Fix  BufferGeometry 'attributes' field type
2018-06-26 13:24:10 -07:00
Atrahasis
981b19dcd0 Dispatch Object3D updates in physijs and update examples. 2018-06-23 13:22:23 +02:00
Atrahasis
4f1cbed8d7 [types/three]: Update Object3D based classes. 2018-06-23 13:02:39 +02:00
Nathan Shively-Sanders
bb546c8273
Merge pull request #26766 from Astrak/r93-updates-vector
ThreeJS: Update Vector classes to r93.
2018-06-22 16:36:50 -07:00
Atrahasis
763667db9d Typo 2018-06-22 23:56:07 +02:00
Atrahasis
9239573fea Update Vector classes to r93 2018-06-22 23:30:01 +02:00
Adrien Coffre
4130d2dcd6 Update post-processing files to current API. Add SSAA and UnrealBloom passes. 2018-06-22 15:15:31 +02:00
Vasiliy G. Stavenko
5ef58a1652 Fix BufferGeometry field type 2018-06-21 13:41:52 +03:00
Nathan Shively-Sanders
290798c432
Merge pull request #26540 from izmhr/master
three: add .animate() function to WebGLRenderer (for WebVR)
2018-06-20 14:28:54 -07:00
Nathan Shively-Sanders
7361dd9a34
Merge pull request #26485 from kazakami/three-gltfexporter
[@types/three] Add typing for three-gltfexporter.
2018-06-20 12:52:26 -07:00
Nathan Shively-Sanders
7cfaae6be4
Merge pull request #26428 from twastvedt/three-UniformsLib
[three] Update UniformsLibs
2018-06-18 12:54:00 -07:00
Adrien Coffre
419d0ee0ca Add enabled property to viewoffset object. 2018-06-18 14:39:14 +02:00
Atsushi Izumihara
9a7ffe86e5 three: add .animate() function to WebGLRenderer (for WebVR) 2018-06-14 13:36:14 +09:00
Mine Starks
7953982291
Merge pull request #26397 from nebeleh/master
update to three/three-core.d.ts on BufferAttributes typings
2018-06-13 09:23:10 -07:00
kazakami
1af294a268 add typing for three-gltfexporter 2018-06-13 00:41:31 +09:00
pvavrik
d9c5007c85 ThreeJS : Add color param to Light helpers 2018-06-11 15:07:30 +02:00
Trygve Wastvedt
84cb163ba9 Update UniformsLibs, fix typos. 2018-06-09 22:02:23 -05:00
Saman Amraii
4ef4d09eb0
update to three-core.d.ts
BufferAttributes require a 3rd optional normalized arg of type boolean.
2018-06-08 19:37:13 -07:00
Adrien Coffre
ebbf6dd54d ThreeJS : Add null types to scene #fog and #overrideMaterial. 2018-06-05 09:21:42 +02:00
Daniel Rosenwasser
140398df91
Merge pull request #25830 from jcyuan/master
fixed typing error & argument type error for THREE.js.
2018-05-26 22:34:07 -07:00
Daniel Rosenwasser
adcc74691a
Merge pull request #25956 from nofree5th/master
[three.js] Fix FontLoader/Font json type declare
2018-05-23 22:49:48 -07:00
nofree
516d4bb607 Fix FontLoader/Font json type declare 2018-05-23 13:29:32 +08:00
Ford Hurley
eb59409935 THREE.BufferGeometry.setFromPoints accepts Vector2s as well
The documentation shows examples of this, e.g.:

https://threejs.org/docs/#api/extras/curves/EllipseCurve

The source code shows how it handles an array of either type:

https://github.com/mrdoob/three.js/blob/2f2e5f731/src/core/BufferGeometry.js#L352
2018-05-20 09:52:28 -04:00
J.C
c91d807e1c fixed typing error & argument type error. 2018-05-17 13:34:54 +08:00
Ron Buckton
7103b727bf
Merge pull request #25752 from sethk/threejs-updates
Update some three.js types
2018-05-15 12:50:29 -07:00
Ron Buckton
7d8b244510
Merge pull request #25772 from Astrak/threejs-webglinfo
Three.js : Add WebGLInfo.
2018-05-15 12:10:16 -07:00
Adrien Coffre
928f885297 Update programs too. 2018-05-15 11:55:59 +02:00
Adrien Coffre
809121fb60 Fix. 2018-05-15 11:46:19 +02:00
Seth Kingsley
c5a263a535 Merge branch 'threejs-updates' of github.com:sethk/DefinitelyTyped into threejs-updates 2018-05-14 21:47:40 -07:00
Seth Kingsley
ba18036345 PATCH 2 2018-05-14 21:45:15 -07:00
Atrahasis
d403c1c1d9 Add WebGLInfo 2018-05-14 22:03:58 +02:00
Seth Kingsley
4f5020b79e
Merge branch 'master' into threejs-updates 2018-05-13 15:51:36 -07:00
Seth Kingsley
e51b5c893c PATCH 1
Update version number and CC myself
2018-05-13 15:49:42 -07:00
Seth Kingsley
a11ee4ecf4 Update some three.js types 2018-05-13 01:18:56 -07:00
Matthew Tebbs
57c2a02c4d Add missing dispose() method type. 2018-05-12 11:30:33 -07:00
Ender Doe
2b2d81c226 Fixed Three Edge Geometry definition (#25627) 2018-05-09 11:26:37 -07:00
FishOrBear
e453232df5 [three.js] class CatmullRomCurve3 (#25569)
* add 'Texture' attribute: 'center','rotation'

* add 'ShapeBufferGeometry'

* Geometry: Move computeLineDistance() to Line

* return this

* update CatmullRomCurve3

* fix type
2018-05-07 09:03:45 -07:00
Andre Z Sanchez
44bc3b6c86 Fix Three.ParametricGeometry arguments (#25514) 2018-05-04 13:52:05 -07:00
heroboy
cc428670a2 [THREE]fix class Raycaster and add jsdoc (#25151)
* Update three-core.d.ts

add `optionalTarget` parameter

* Update three-core.d.ts

add Curve.arcLengthDivisions

* fix Indentation

* fix class Raycaster
2018-04-21 05:29:18 +12:00
heroboy
c72a09b00f [THREE] add Curve.arcLengthDivisions (#25116)
* Update three-core.d.ts

add `optionalTarget` parameter

* Update three-core.d.ts

add Curve.arcLengthDivisions

* fix Indentation
2018-04-19 10:58:49 -07:00
heroboy
8030410d9b Update three-core.d.ts (#24989)
add `optionalTarget` parameter
2018-04-16 15:25:29 -07:00
Tiger Oakes
6c5c0a8898 [three] CubeTextureLoader: Fixed crossOrigin typo and made types more precise (#24848)
* Updated CubeTextureLoader types

* Feedback: keep `urls` as plain array
2018-04-09 13:26:18 -07:00
Xiaohan Zhang
d472efccd0 threejs - use correct skinWeights and skinIndices types (#24800) 2018-04-09 10:52:14 -07:00
FishOrBear
c261382807 <threejs> Geometry: Move computeLineDistance() to Line (#24803)
* add 'Texture' attribute: 'center','rotation'

* add 'ShapeBufferGeometry'

* Geometry: Move computeLineDistance() to Line

* return this
2018-04-09 10:23:11 -07:00