Repository navigation
3.6.0
Android OpenGL tilt release. The Dart API gains WallpaperCapabilities.supportsTilt. Existing shaders are unaffected.
- OpenGL live wallpapers: new optional renderer uniform
u_tilt(vec2, -1 to 1 per axis).xgrows as the right edge dips, andygrows as the top edge leans away from you.(0, 0)at rest and on devices without a sensor. It comes from the game rotation vector, or from the accelerometer when that is missing, at about 15 Hz, smoothed per frame. It is measured from a rest pose that follows how you hold the phone over about 7 seconds. The sensor is registered only while the wallpaper is visible and its shader readsu_tilt. It is unregistered when the wallpaper goes invisible, loses its surface, fails, or is destroyed. - New
WallpaperCapabilities.supportsTilt: true on Android when OpenGL live wallpapers are supported and the device has one of those sensors; false on iOS. - Shaders that declare
u_tiltand must also run on 3.5.0 keep working. 3.5.0 accepts the declaration and leavesu_tiltat (0, 0). ChecksupportsTiltto decide whether to use it.