You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added back setSource() function to Texture class documentation.
v8.1.2 (04/07/2021)
Bug Fixes:
core/Plane.js
Fixed video and canvas autoloading not working since v8.1.1.
v8.1.1 (03/25/2021)
Bug Fixes:
core/Texture.js
Fixed context restoration (recreate GL texture).
core/ShaderPass.js
Fixed context restoration (correctly restack in our Scene manager).
Enhancements:
core/Program.js
Added a activeAttributes property and keep track of active attributes used in the program.
core/Geometry.js
Only create and bind program active attributes buffers to avoid warnings.
core/Plane.js
Cleaned up initial sources loading.
v8.1.0 (03/17/2021)
Bug Fixes:
all
Improved failed WebGL context handling (do not break whole javascript execution anymore when WebGL context creation fails).
core/Texture.js
Fixed erratic setSource cache behavior when a texture source changes from image to video/canvas
Enhancements:
core/Curtains.js
Added an onSuccess callback fired when the WebGL context has been successfully created.
core/Renderer.js
Added onSuccess callback support.
loaders/TextureLoader.js
Updated accepted media file formats list.
v8.0.5 (03/05/2021)
Bug Fixes:
core/Scene.js
changed opaque/transparent stack orders and disable/enable blending when needed to better handle transparent planes.
core/Program.js
only add Program to Renderer cache when it's a new one.
Enhancements:
core/Renderer.js
Added blending property to state object and setBlending() method to enable/disable blending.
Changed depth function default value to gl.LEQUAL.
v8.0.4 (02/17/2021)
Bug Fixes:
core/Mesh.js
fixed mesh's texturesOptions being overriden when using a mesh load method.
fixed mesh not being drawn when a non active texture is not bound.
core/Plane.js
fixed resetPlane() resizing when a new HTML element is passed.
loaders/TextureLoader.js
fixed successCallback fired multiple times for video textures.
Enhancements:
core/Texture.js
removed Firefox Y-flip and premultiplyAlpha warning.
v8.0.3 (02/01/2021)
Bug Fixes:
core/Mesh.js
setted renderOrder default property to 0.
core/Plane.js
removed renderOrder default property to 0.
framebuffers/ShaderPass.js
fixed renderOrder property when initial value is different from 0.
loaders/TextureLoader.js
fixed parent onReady callback not fired when texture is using a cached source.
examples
Fixed GSAP and Locomotive scroll examples.
Enhancements:
examples
Updated GSAP version to remove security issue.
v8.0.2 (01/18/2021)
Bug Fixes:
core/Mesh.js
fixed textures array looping errors if the plane has been removed beforehand.
loaders/TextureLoader.js
avoid loading the source twice if its crossorigin attribute has been specified.
fixed texture sampler name bug when media element has no data-sampler attribute
try to load image from cache before anything else
utils/CacheManager.js
fixed getTextureFromSource()
examples
updated the examples to add crossorigin attributes.
v8.0.1 (01/04/2021)
Bug Fixes:
core/Texture.js
wait for original texture to be uploaded before copying it on init.
only apply flipY and premultiplyAlpha when texture source is not empty anymore (avoid warnings).
extras/PingPongPlane.js
fixed erratic behavior when sometimes the FBO swapping wasn't working #67.
v8.0.0 (12/10/2020)
Enhancements:
core/Plane.js
refactored the whole matrix and screen space to world space calculations.
implemented a raycasting (ray-plane intersection) algorithm so mouseToPlaneCoords() method now works with transformed planes.
added onChange events to rotation, relativeTranslation and scale vectors to automatically update their properties via setters (see Vec2/Vec3).
core/Texture.js
added onChange events to scale and offset vectors to automatically update their properties via setters (see Vec2/Vec3).
improved texture matrix calculations performance.
only set/get texture matrix uniform when used in the shaders.
math/Vec2.js
added getters, setters and onChange event to the x and y components of the vector, allowing to execute a callback when one of this property changes.
math/Vec3.js
added getters, setters and onChange event to the x, y and z components of the vector, allowing to execute a callback when one of this property changes.
camera/Camera.js
changed default camera position
updated CSSPerspective calculations
added a getScreenRatiosFromFov() method
loaders/TextureLoader.js
create a new Image() or video element each time an image or video is loaded, so we can set its crossOrigin property before its src (fix potential CORS issues).
core/Curtains.js
added keep parameter to the nextRender() method so it can act both like setTimeout and setInterval.
extras/FXAAPass.js
FXAAPASS now extends ShaderPass class.
examples
updated the examples to reflect those changes.
Bug Fixes:
core/Plane.js
fixed mouseToPlaneCoords() method with transformed planes.
extras/PingPongPlane.js
should hopefully fix erratic behaviour/inconsistent results #67.
removed shareProgram parameter: it was unnecessarily complicating the codebase, adding a lot of extra GL calls for each plane (updating all the uniforms at every frame) and the performance boost wasn't obvious at all.
removed deprecated setRelativePosition() method.
removed deprecated moveToFront() method.
v7.3.3 (12/02/2020)
Bug Fixes:
index.mjs
fixed Quat class not being exported.
core/Scene.js
fixed sharedProgram render order by program IDs
loaders/PlaneTextureLoader.js
replaced isEqualNode() with isSameNode()
v7.3.2 (11/13/2020)
Bug Fixes:
core/Curtains.js
fixed premultipliedAlpha property that was not correctly passed to the Renderer.
core/Scene.js
fixed setRenderOrder when context does not handle depth.
extras/PingPongPlane.js
fixed remove() method.
v7.3.1 (11/12/2020)
Bug Fixes:
core/Scene.js
fixed setRenderOrder not working when no shader passes.
v7.3.0 (11/12/2020)
Enhancements:
core/Scene.js
refactored the draw stacks.
core/Curtains.js
added isWebGL2(), clear(), clearColor() and clearDepth() methods.
core/Plane.js
added renderOrder parameter, property and setRenderOrder() method.
core/Texture.js
added offset property and setOffset() method.
framebuffers/ShaderPass.js
added renderOrder parameter, property and setRenderOrder() method.
extras/PingPongPlane.js
changed type property to "PingPongPlane" and updated stacking handling.
examples
added a new example demonstrating the use of the new texture's setOffset() and plane's setRenderOrder() methods: GSAP click to fullscreen gallery