r72
https://github.com/mrdoob/three.js/wiki/Migration-Guide#r71--r72
(423,927 KB, gzip: 99,461 KB)
Source
- Global
- Added
toJSON()
to all objects. (@kumavis) - Added
EdgesGeometry
andWireframeGeometry
. (@mrdoob) - Added
InstancedBufferAttribute
,InstancedBufferGeometry
,InstancedInterleavedBuffer
,InterleavedBuffer
andInterleavedBufferAttribute
. (@benaadams, @brason) - Added
DirectGeometry
(basically, whatGeometry
should have been). (@mrdoob) - Added npm support. (@bripkens)
- Added
CatmullRomCurve3
. (@zz85) - Added
CircleBufferGeometry
. (@benaadams, @brason) - Using
copy()
inclone()
to avoid duplicated code. (@dubejf, @mrdoob) - Added native AMD support. (@missingdays)
- Added
clone()
to all objects. (@dhritzkiv) - Added
CanvasTexture
object. (@mrdoob) - Removed
DynamicBufferAttribute
. (@mrdoob) - Removed
AreaLight
. (@mrdoob) - Removed
tangents
code. (@mrdoob, @tschw) - Removed
groups/drawcalls/offsets
code fromraycast()
mehotds. (@mrdoob) - Renamed
PointCloud
toPoints
. (@mrdoob)
- Added
- ArrowHelper
- Support arrows with zero-length tails. (@tinaun)
- AudioListener
- Removed calls to listener.setVelocity. (@mrdoob)
- Bone
- Added
clone()
. (@hena-3)
- Added
- BoxHelper
- BufferAttribute
- Added
count
property. (@benaadams, @WestLangley, @dubejf)
- Added
- BufferGeometry
- Added
copy()
. (@benaadams) - Added
rotateX()
. (@WestLangley) - Added
rotateY()
. (@WestLangley) - Added
rotateZ()
. (@WestLangley) - Added
translate()
. (@WestLangley) - Added
scale()
. (@WestLangley) - Added
lookAt()
. (@WestLangley) - Removed
drawcall.index
. (@mrdoob) - Removed
reorderBuffers()
. (@mrdoob) - Renamed
drawcalls
togroups
. (@mrdoob) - Removed
computeTangents()
. (@mrdoob) - Added
setIndex()
. (@mrdoob) - Added
setDrawRange()
. (@mrdoob)
- Added
- Cache
- Added
enabled
property (defaultfalse
). (@dubejf)
- Added
- Color
- Completed
setStyle
. (@dubejf)
- Completed
- CubeCamera
- Restore the default framebuffer in
updateCubeMap()
. (@WestLangley)
- Restore the default framebuffer in
- CubeTexture
flipY
is nowfalse
by default. (@fordacious)
- DataTexture
- EllipseCurve
- Added
aRotation
parameter. (@neko1235)
- Added
- Geometry
- Added
normalize()
. (@xizhonghua) - Added
rotateX()
. (@WestLangley) - Added
rotateY()
. (@WestLangley) - Added
rotateZ()
. (@WestLangley) - Added
translate()
. (@WestLangley) - Added
scale()
. (@WestLangley) - Added
lookAt()
. (@WestLangley) - Removed
computeTangents()
. (@mrdoob)
- Added
- Group
- Added
clone()
. (@hena-3)
- Added
- Gyroscope
- Moved to examples folder. (@mrdoob)
- LensFlare
- Added
clone()
. (@hena-3)
- Added
- Line
LinePieces
mode is now aLineSegments
class. (@mrdoob, @WestLangley)
- LineSegments
- Added
clone()
. (@hena-3)
- Added
- Loader
- Removed
showStatus
. (@mrdoob)
- Removed
- LoadingManager
- Added
onStart
. (@mrdoob)
- Added
- LOD
- Renamed
objects
tolevels
. (@mrdoob) - Added
toJSON()
. (@qwertzui11)
- Renamed
- Material
- Added
depthFunc
property. (@benaadams) - Warn user when property doesn't exist. (@mrdoob)
- Added
- MaterialLoader
- Support
alphaTest
. (@satori99)
- Support
- Matrix4
- Only create internal vectors when needed. (@coballast)
- Mesh
- MeshBasicMaterial
- Removed
lightMap
. (@WestLangley) - Added
aoMap
. (@WestLangley)
- Removed
- MeshLambertMaterial
- Removed
wrapAround
andwrapRGB
. (@WestLangley) - Removed
lightMap
. (@WestLangley) - Removed
shading
. (@mrdoob)
- Removed
- MeshPhongMaterial
- Added
lightMapIntensity
. (@bhouston) - Added
aoMap
andaoMapIntensity
. (@bhouston, @WestLangley) - Removed
wrapAround
andwrapRGB
. (@WestLangley) - Added
emissiveMap
. (@WestLangley) - Added
displacementMap
. (@mrdoob, @WestLangley)
- Added
- MorphBlendMesh
- Improvements to
update()
. (@torMOZok)
- Improvements to
- Line
- Return
raycast()
intersection distance in world space. (@jee7)
- Return
- Object3D
- Clone
renderOrder
. (@mrdoob) parent
is nownull
by default. (@mrdoob)- Added
DefaultMatrixAutoUpdate
static property. (@nhalloran)
- Clone
- ObjectLoader
- Support
castShadow
andreceiveShadow
. (@IDWMaster) - Fixed
bumpScale
parsing. (@bhouston) - Support for
TextGeometry
. (@fraguada) - Moved relevant code to
MaterialLoader
. (@mrdoob)
- Support
- Path
- Added
aRotation
parameter. (@neko1235)
- Added
- RawShaderMaterial
- Fixed
clone()
. (@mrdoob)
- Fixed
- Ray
- Added
distanceSqToPoint()
. (@dubejf)
- Added
- Raycaster
- Support cameras with transformed parents in
setFromCamera()
. (@WestLangley) - Removed
precision
. (@WestLangley) - Ignore invisible objects. (@mrdoob, @tschw)
- Support cameras with transformed parents in
- ShaderMaterial
- Removed
attributes
. (@mrdoob)
- Removed
- Skeleton
- Added
clone()
. (@hena-3)
- Added
- SkinnedMesh
- Call
calculateInverses()
inbind()
directly. (@TatumCreative)
- Call
- Texture
- Added
toJSON()
. (@elephantatwork, @mrdoob, @tschw) - Support
<canvas>
intoJSON()
. (@mrdoob)
- Added
- Vector2
- Added
lengthManhattan()
. (@saromanov) - Added
addScaledVector()
. (@gero3)
- Added
- Vector3
- Added
addScaledVector()
. (@gero3)
- Added
- Vector4
- Added
addScaledVector()
. (@gero3)
- Added
- WebGLRenderer
- Refactoring and clean up. (@mrdoob, @benaadams, @CodingFabian, @tschw)
- Expose more shader errors in
WebGLShader
. (@delvarworld) - Added
extensions
property. (@mrdoob) - Added
getSize()
. (@mrdoob) - Moved relevant code to new
WebGLBuffers
,WebGLObjects
andWebGLGeometries
classes. (@mrdoob, @dubejf, @gero3) - Renamed
ShadowMapPlugin
toWebGLShadowMap
. (@mrdoob) - Moved
shadowMap*
properties toWebGLShadowMap
. (@mrdoob) - Fixed mipmaps being generate even with
generateMipmaps
set tofalse
. (@shapespark) - Added instancing support via
ANGLE_instanced_arrays
. (@benaadams) - Removed
Geometry
render path. Now everything gets converted toBufferGeometry
. (@mrdoob, @WestLangley, @benaadams, @Lowfab, @brason, @echevil, @ikerr, @box) - Cleaner glsl generation. (@benaadams, @tschw)
- Cleaned up Lambert shader. (@WestLangley)
- Added
activeTexture()
andbindTexture()
toWebGLState
. (@benaadams) - Reduced redundant texture binds. (@benaadams)
- Fixed
Sprite
s not being affected byFogExp2
. (@mstrater) - Moved #extension directive before precision. (@mrdoob)
- Replaced
uniforms
andattributes
withgetUniforms()
andgetAttributes()
inWebGLProgram
. (@tschw) - Added SHADER_NAME define to shaders. (@mrdoob)
- Added
WebGLProperties
to allow same scene to be rendered in multiple renderers. (@fordacious, @mrdoob) - Cleaned up programs deallocation code. (@tschw)
- Added
version
to relevant objects to allow multi rendering. (@dubejf, @mrdoob) - Added
getContextAttributes()
. (@mrdoob) - Removed (long-time broken) Cascaded ShadowMaps code. (@mrdoob)
- Added
dispose()
. (@dubejf) - Deprecated
supportsFloatTextures()
,supportsHalfFloatTextures()
,supportsStandardDerivatives()
,supportsCompressedTextureS3TC()
,supportsCompressedTexturePVRTC()
andsupportsBlendMinMax()
. (@mrdoob) - Added
material.wireframe
support toWebGLShadowMap
. - Reworked wireframe computing code. (@mrdoob, @arose)
- Optimised per-pixel lighting calculations. (@tschw)
- Deprecated
supportsInstancedArray()
andsupportsVertexTextures()
. (@mrdoob) - Allowing anisotropy for floating point textures. (@box)
- Moved relevant code to new
WebGLCapabilities
andWebglPrograms
. (@gero3, @tschw)
- WebGLRenderTarget
- Fixed
setSize
. (@benaadams)
- Fixed
Documentation
- Fixed
MeshNormalMaterial
viewer. (@yomotsu) - Added geometry browser. (@TatumCreative)
- Improvements to
SceneUtils
page. (@gero3) - Improvements to
TextGeometry
page. (@johanhelsing) - Improvements to
Matrix transformations
page. (@nakhleh) - Improvements to
CubeCamera
page. (@TatumCreative, @sukhwant) - Improvements to
ImageUtils
page. (@TatumCreative) - Improvements to
Animation
page. (@TatumCreative) - Removed
AnimationMorphTarget
page. (@TatumCreative) - Improvements to
KeyFrameAnimation
page. (@TatumCreative) - Improvements to
Curve
page. (@TatumCreative) - Improvements to
CurvePath
page. (@TatumCreative) - Improvements to
Path
page. (@TatumCreative) - Improvements to
CubeTexture
page. (@TatumCreative) - Improvements to
Gyroscope
page. (@TatumCreative) - Improvements to
Shape
page. (@TatumCreative) - Improvements to
PointLightHelper
page. (@TatumCreative) - Improvements to
SpotLightHelper
page. (@TatumCreative) - Improvements to
MorphBlendMesh
page. (@TatumCreative) - Improvements to
SpotLight
page. (@TatumCreative) - Improvements to
Bone
page. (@TatumCreative) - Improvements to
LOD
page. (@TatumCreative) - Improvements to
LensFlare
page. (@TatumCreative) - Improvements to
Mesh
page. (@TatumCreative) - Improvements to
MorphAnimMesh
page. (@TatumCreative) - Improvements to
WebGLShader
page. (@TatumCreative) - Improvements to
ShapeGeometry
page. (@motleytech) - Improvements to
EventDispatcher
page. (@aha66) - Improvements to
BoxGeometry
page. (@abritinthebay) - Improvements to
Camera
page. (@sukhwant) - Improvements to
OrthographicCamera
page. (@sukhwant) - Improvements to
PerspectiveCamera
page. (@sukhwant) - Improvements to
CombinedCamera
page. (@sukhwant) - Improvements to
AmbientLight
page. (@sukhwant) - Improvements to
AreaLight
page. (@sukhwant) - Improvements to
DirectionalLight
page. (@sukhwant) - Improvements to
HemisphereLight
page. (@sukhwant) - Improvements to
Light
page. (@sukhwant) - Improvements to
PointLight
page. (@sukhwant) - Improvements to
SpotLight
page. (@sukhwant) - Improvements to
Geometry
page. (@TatumCreative) - Improvements to
Bone
page. (@TatumCreative) - Improvements to
Skeleton
page. (@TatumCreative) - Improvements to
SkinnedMesh
page. (@TatumCreative) - Added bones browser. (@TatumCreative)
- Improvements to
Create a scene
page. (@TazeTSchnitzel, @GGAlanSmithee) - Added
WebGLState
page. (@mrdoob) - Implemented
<base>
. (@mrdoob) - Improvements to
Material
page. (@gero3) - Improvements to
WebGLRenderer
page. (@dubejf) - Improvements to
Vector2
page. (@gero3, @pomle, @makc) - Improvements to
Vector3
page. (@gero3, @pomle, @makc) - Improvements to
Vector4
page. (@gero3, @pomle, @makc) - Improvements to
BufferAttribute
page. (@mattholl) - Improvements to
BufferGeometry
page. (@mattholl, @TatumCreative) - Improvements to
DataTexture
page. (@tschw) - Improvements to
Matrix3
page. (@erich666) - Improvements to
Matrix4
page. (@erich666)
Examples
- Ensure that uniforms used by
AdaptiveToneMapping
are not shared between instances. (@bhouston) - Take
pixelRatio
into account when calculating renderer width and height inVREffect
. (@lalle, @borismus) - Fix for 'average luminance' uniform not being set for
AdaptiveToneMapping
. (@Verold) - Allow multiple devices to be used simultaneously by
VRControls
. (@borismus) - Implemented
renderer.getSize()
inVREffect
. (@mrdoob) - Allow the use of
TransformControls
simultaneously with other controls. (@valette) - Updated
VRControls
andVREffect
to match WebVR spec. (@toji) - Added
getSize()
toCSS3DRenderer
. (@wzr1337) - Improved and cleaned up
VRControls
andVREffect
. (@mrdoob) - Added
webgl_buffergeometry_instancing
,webgl_buffergeometry_instancing_dynamic
andwebgl_buffergeometry_instancing_interleaved_dynamic
examples. (@benaadams) - Added
GammaCorrectionShader
and implemented inwebgl_shaders_tonemapping
. (@WestLangley) - Fixed
VRControls
Firefox support and improvedvr_cubes
example. (@brianpeiris) - Added
DragControls
class andwebgl_geometry_spline_editor
example. (@zz85) - Added textures to
webgl_geometry_shapes
. (@WestLangley) - Added
webgl_instanced_particles_billboards
example. (@benaadams, @mrdoob) - Moved
BufferGeometry
examples to new Advanced section. (@mrdoob) - Improvements to
BabylonLoader
. (@mrdoob) - Improvements to
OBJExporter
and addedwebgl_exporter_obj
example. (@kovacsv) - Fixed
renderOrder
inProjector
. (@archcomet) - Fixed
TrackballControls
zoom. (@archcomet) - Added
webgl_multiple_elements
example. (@greggman, @mrdoob) - Added
webgl_buffergeometry_constructed_from_geometry
example. (@callumprentice) - Improvements to
webgl_materials_blending_custom
example. (@felixturner) - Improvements to
webgl_modifier_tessellation
example. (@WestLangley) - Improvements to
webgl_decals
example. (@WestLangley) - Improvements to
Mirror
. (@greggman) - Fixes to
ParallaxShader
. (@dubejf) - Improvements to
TransformControls
. (@dubejf, @tschw, @elisee) - Added
webgl_postprocessing_ssao
example. (@daoshengmu) - Unified loaders code. (@zinefer)
- Added
SEA3DLoader
and examples. (@sunag) - Added
MD2Loader
and updated relevant examples. (@mrdoob) - Added line support to
SoftwareRenderer
. (@daoshengmu) - Added
dispose
method to all controls. (@dubejf) - Added
webgl_loader_json_claraio
example. (@bhouston) - Added
GPUParticleSystem
class andwebgl_gpu_particle_system
example. (@flimshaw) - Removed
SceneExporter
. (@mrdoob) - Removed
SPARKS
and relevant examples. (@mrdoob) - Added damping to
OrbitControls
. (@WestLangley) - Removed double negatives from
OrbitControls
API. (@WestLangley) - Added
TeapotBufferGeometry
class andwebgl_buffergeometry_teapot
example. (@erich666) - Improvements to
DDSLoader
. (@nopjia) - Removed
WebGLDeferredRenderer
(un-maintained). (@mrdoob) - Updated
WaterShader
to latest version. (@titansoftime) - Removed
AudioObject
. (@mrdoob) - Fixed
css3d_youtube
. (@kakakakakku) - Improved lighting in skin examples. (@mrdoob)
Editor
- Updated CodeMirror to 5.1. (@mrdoob)
- Moved script editor on top of player. (@mrdoob)
- Added backspace shortcut to delete. (@mrdoob)
- Using CodeMirror to edit
ShaderMaterial
. (@tschw) - Added auto-completition (via tern-threejs) to CodeMirror. (@zz85)
- Hacks for downloading data in Firefox. (@makc, @mrdoob, @gero3)
- Antialias checkbox now updates the renderer. (@mrdoob)
- Improvements to Player. (@tschw)
- Added rudimentary undo/redo system. (@mrdoob)
- Added support for md2 files. (@mrdoob)
- Added
alphaTest
support. (@mrdoob) - Improved
BufferGeometry
panel. (@mrdoob) scaleLock
enabled by default. (@mrdoob)- Fixed
Viewport.Info
. (@mrdoob)
Exporters
- Blender
- Parsing of face materials should ignore unused materials. (@repsac)
- Add option to disable modifier application. (@rkusa)
- Export of indexed BufferGeometry objects. (@tschw)
- Avoid obscure error on certain non-image textures. (@tschw)
- UV optimizations. (@repsac)
- Changed transparency to opacity. (@tforgione)
- Export material's transparency attribute in blender. (@ov)
- Fixed orphaned data left over from multiple exports. (@repsac)