github excaliburjs/Excalibur v0.28.4
Excalibur v0.28.4 Release

latest releases: 0.30.0-alpha.1269+548b085, 0.30.0-alpha.1268+fd327b7, 0.30.0-alpha.1267+cc7c805...
11 months ago

excalibur logo

Another small release! A few bug fixes and some enhancements to materials!

water-material.mp4

Materials

2 new uniforms

  • u_screen_texture - This is the texture of the screen right before the material draw call
  • u_time_ms - This is the milliseconds since page navigation (performance.now() under the hood)

2 new attribute/varyings

  • a_screenuv - The vertex attribute corresponding to the screen uv relative to the current graphic
  • v_screenuv - The fragment varying corresponding to the screen uv relative to the current graphic

Finally there is a new convenience api for updating shader values in materials. .update(shader => {...})

  game.input.pointers.primary.on('move', evt => {
    heartActor.pos = evt.worldPos;
    swirlMaterial.update(shader => {
      shader.trySetUniformFloatVector('iMouse', evt.worldPos);
    });
  });

What's Changed

Full Changelog: v0.28.3...v0.28.4

Don't miss a new Excalibur release

NewReleases is sending notifications on new releases.