Skip to content

Excalibur v0.28.4 Release

Compare
Choose a tag to compare
@eonarheim eonarheim released this 22 Dec 03:52
· 400 commits to main since this release

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