# scena v1.0.2 Release Notes

Published: 2026-05-15.

Crates.io: <https://crates.io/crates/scena/1.0.2>.

docs.rs: <https://docs.rs/scena/1.0.2/scena/>.

## Scope

`scena` v1.0.2 is a patch release fixing a WebGL2 shader linker failure that
prevented the WebGL2 backend from running on Firefox. No public API changes.
Native, WebGPU, and Chromium WebGL2 paths are unaffected.

## Install

```bash
cargo add scena
```

Equivalent `Cargo.toml` entry:

```toml
[dependencies]
scena = "1.0"
```

## Fixed

- WebGL2 program link failure on Firefox: the output shader no longer
  redeclares fragment-only uniforms in the vertex stage with implicit `highp`
  precision that conflicts with the fragment stage's `precision mediump float;`
  directive. Firefox WebGL2 reported
  `Uniform \`<name>\` is not linkable between attached shaders` (first
  surfaced as `camera_position_exposure`). See ADR-0001 for the full
  diagnosis.

## Regression coverage

- New unit test
  `webgl2_shaders_have_no_cross_stage_uniform_precision_mismatch` in
  `src/render/gpu/materials.rs::tests` parses both hand-written GLSL
  shaders at test time (reading the source via `include_str!`) and fails
  if any uniform is redeclared across stages with a precision mismatch.
  The test runs as part of every native `cargo test` — no browser
  required.

## Compatibility

Drop-in replacement for 1.0.1. No API changes. No source-incompatible
changes. Same MSRV. Same feature flags. Supersedes 1.0.1 for new installs.
