TS type library for the popular webgl library threejs
tslFn
related typings by @0b5vr in https://github.com/three-types/three-ts-types/pull/744
Full Changelog: https://github.com/three-types/three-ts-types/compare/r163...r164
Material.onBeforeRender
by @Methuselah96 in https://github.com/three-types/three-ts-types/pull/856
Full Changelog: https://github.com/three-types/three-ts-types/compare/r162...r163
THREE
namespace was removed, since three.js no longer includes a UMD bundle (https://github.com/three-types/three-ts-types/pull/843)WebGLRenderTargetOptions
was removed since it is equivalent to RenderTargetOptions
(https://github.com/three-types/three-ts-types/pull/827)TextureEncoding
was removed since it was removed from three.js in r162 (https://github.com/three-types/three-ts-types/pull/812)Float64BufferAttribute
was removed since it was removed from three.js in r162 (https://github.com/three-types/three-ts-types/pull/844)Full Changelog: https://github.com/three-types/three-ts-types/compare/r161...r162
Vector
interface was removed in https://github.com/three-types/three-ts-types/pull/727. Use a type union (e.g., Vector2 | Vector3 | Vector4
) instead or create your own Vector
interface.fogExp2
parameter by @vanruesc in https://github.com/three-types/three-ts-types/pull/736
materialReference
as nullable by @0b5vr in https://github.com/three-types/three-ts-types/pull/732
clamp
and saturate
by @0b5vr in https://github.com/three-types/three-ts-types/pull/733
tslFn
and several functions that use tslFn by @0b5vr in https://github.com/three-types/three-ts-types/pull/735
@remarks
warning on typedoc by @0b5vr in https://github.com/three-types/three-ts-types/pull/749
Full Changelog: https://github.com/three-types/three-ts-types/compare/r160...r161
Shader
type was renamed to ShaderLibShader
in https://github.com/three-types/three-ts-types/pull/719. It was never meant to be used as a general-purpose shader type and was incorrectly used as the first parameter of Material.onBeforeCompile
. If using it for the first parameter of Material.onBeforeCompile
, use WebGLProgramParametersWithUniforms
instead, otherwise use/create a more suitable type.this
return type for Matrix4
in-place functions by @TimJentzsch in https://github.com/three-types/three-ts-types/pull/705
Full Changelog: https://github.com/three-types/three-ts-types/compare/r159...r160
Full Changelog: https://github.com/three-types/three-ts-types/compare/r158...r159
setPosition()
by @ycw in https://github.com/three-types/three-ts-types/pull/624
Depth
, not Deep
by @ycw in https://github.com/three-types/three-ts-types/pull/625
null
as value for .clippingPlanes
by @yfunk in https://github.com/three-types/three-ts-types/pull/629
Full Changelog: https://github.com/three-types/three-ts-types/compare/r157...r158
| undefined
to IKS properties by @Methuselah96 in https://github.com/three-types/three-ts-types/pull/599
Color.set()
override order to set ColorRepresentation function signature by @michealparks in https://github.com/three-types/three-ts-types/pull/614
Full Changelog: https://github.com/three-types/three-ts-types/compare/r156...r157
Object3D
is now a type map of events instead of just an event type.load
and loadAsync
methods back to Loader
by @Methuselah96 in https://github.com/three-types/three-ts-types/pull/570
Full Changelog: https://github.com/three-types/three-ts-types/compare/r155...r156
IUniform.value
to unknown
by @Methuselah96 in https://github.com/three-types/three-ts-types/pull/547
Full Changelog: https://github.com/three-types/three-ts-types/compare/r154...r155