Fixed:
- Blue channel in
displacement
effect should not be offset by -0.5.
New:
- Added
deformation
effect. - Added
channelSplit
effect. - Extended
displacement
effect to support blue channel for intensity. - Added
multi-pointer
demo. - Added
white
noise. - Added
mouse
utility for adding theu_mouse
uniform to the shader. - Added
resolution
utility for adding theu_resolution
uniform to the shader.
Fixed:
- Types issue in previous patch.
New:
- Added a
dist/index.cjs
distribution. - Replaced
index.js
withsrc/index.js
.
Fixed:
- Fixed
extends
property of typeAttribute
.
Breaking:
main
field inpackage.json
now points todist/index.cjs
.
New:
- Added a
types.d.ts
module.
New:
- Added
kaleidoscope
effect.
New:
- Added
afterDraw
callback to kampos config. Used to pass a function that will be called after each draw call. - Added optional function argument
afterDraw
tokampos#play()
method to be dynamically set tokampos.config.afterDraw
. - Added optional boolean argument
skipTextureCreation
tokampos#setSource()
method to skip texture creation for the source media. useful for cases where using an OffscreenCanvas as a source for multiple programs and need to switch between them.
Breaking:
index.js
now uses ES modules. For a UMD distribution please useindex.umd.js
Fixed:
- Fixed URLs of docs & demos.
- Rewrote Floss tests to run with Ava.
Fixed:
- Ignore test files from NPM that contain invalid characters on Windows systems.
New:
transitions.dissolve
now has support for transitioning into a color by disabling the target media withextureEnabled: false
.color
argument is used to control the color and defaults to transparent black:[0, 0, 0, 0]
.
Fixed:
- Fixed dissolve transition to take alpha channel progress from the luminance of the map.
New:
- Added support for simple plane geometry using new
plane: {segments: number | {x: number, y: number}}
config. - Added
extends: string
property to attribute config which takes a name of an attribute to extend its properties for simplifying coords attribute creation.
Fixed:
- Fixed shader error reporting to correctly report vertex shader errors.
Fixed:
- Fixed error when called
desotry()
more than once.
New:
- Added usage of the
OES_vertex_array_object
extension for improved drawing performance.
New:
beforeDraw
callback now takes an argumenttime
that will get the timestamp param of rAF injected into it.- All effects and transitions now take
params
argument, anObject
that contains initial values to set. turbulence
effect now takes a new argumentparams.output
which results in a code injected to the fragment shader for controlling the output of the effect. You can use the static properties of the effect:turbulence.COLOR
: render the result value as a grayscale vector intocolor
.turbulence.ALPHA
: render the result value intoalpha
.
Breaking:
blend
effect now takesnoise
as a property ofparams
object.displacement
effect now takeswrap
as a property ofparams
object, which are now static properties of the effect:displacement.CLAMP
displacement.DISCARD
displacement.WRAP
tubulence
effect now takes the noise string argument as a property ofparams
, as in:params.noise
.
New:
- Dissolve transition.
New:
- Added cellular noise.
brightnessContrast
andhueSaturation
effects now have initial default values in factory.
New:
- Initial work on
blend
effect.
Fixed:
- Fixed Travis build.
Fixed:
- Fixed noise rendering on mobile with changing
percision
tohighp
.
New:
- Added wrapping methods for
displacement
effect:CLAMP
,DISCARD
,WRAP
.
Fixed:
- Fixed usage of
sourceCoords
indisplacement
transition.
New:
- Added simplex 3D noise.
Fixed:
- Fixed handling
noSource
and multiple textures in draw loop.
Fixed:
- Updated docs & README.
New:
- Added suport for
noSource
argument for rendering without a media source. - Implemented
turbulence
effect. alphaMask
effect now supports luminance mode viaisLuminance
getter/setter.- Added
beforeDraw
callback to kampos config. - Added perlin 3D noise.
Fixed:
- CI build fixes.
Fixed:
- Docs fixes.
- Integrate with Travis CI.
Fixed:
- Added missing
progress
getter/setter forfade
transition.
Fixed:
- kampos is not dependent on
Ticker
.
New:
- Published transpiled source.
New:
- Initial public release.