Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog], and this project adheres to

## [Unreleased]

## [0.33.2] - 2026-06-28

### Added

* Added the `camera` and `dcamera` modules containing view and projection
Expand Down Expand Up @@ -1451,7 +1453,8 @@ The format is based on [Keep a Changelog], and this project adheres to

[Keep a Changelog]: https://keepachangelog.com/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
[Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.33.1...HEAD
[Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.33.2...HEAD
[0.33.2]: https://github.com/bitshifter/glam-rs/compare/0.33.1...0.33.2
[0.33.1]: https://github.com/bitshifter/glam-rs/compare/0.33.0...0.33.1
[0.33.0]: https://github.com/bitshifter/glam-rs/compare/0.32.1...0.33.0
[0.32.1]: https://github.com/bitshifter/glam-rs/compare/0.32.0...0.32.1
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "glam"
version = "0.33.1" # remember to update html_root_url
version = "0.33.2" # remember to update html_root_url
edition = "2021"
description = "A simple and fast 3D math library for games and graphics"
repository = "https://github.com/bitshifter/glam-rs"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ defined in `std`. For example:

```toml
[dependencies]
glam = { version = "0.33.1", default-features = false, features = ["libm"] }
glam = { version = "0.33.2", default-features = false, features = ["libm"] }
```

To support both `std` and `no_std` builds in project, you can use the following
Expand All @@ -102,7 +102,7 @@ std = ["glam/std"]
libm = ["glam/libm"]

[dependencies]
glam = { version = "0.33.1", default-features = false }
glam = { version = "0.33.2", default-features = false }
```

Alternatively, you can use the `nostd-libm` feature. This will always include a
Expand All @@ -118,7 +118,7 @@ std = ["glam/std"]
libm = ["glam/libm"]

[dependencies]
glam = { version = "0.33.1", default-features = false, features = ["nostd-libm"] }
glam = { version = "0.33.2", default-features = false, features = ["nostd-libm"] }
```

### Feature gates
Expand Down
2 changes: 2 additions & 0 deletions src/camera/lh/proj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//! * [`directx`] - NDC Z range **[0, 1]**, Y-up
//! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down

#[doc(alias = "webgl")]
pub mod opengl {
//! OpenGL NDC convention: Z range **[-1, 1]**, Y-up.
//!
Expand Down Expand Up @@ -140,6 +141,7 @@ pub mod vulkan {
}
}

#[doc(alias = "webgpu")]
pub mod directx {
//! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up.
//!
Expand Down
2 changes: 2 additions & 0 deletions src/camera/rh/proj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//! * [`directx`] - NDC Z range **[0, 1]**, Y-up
//! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down

#[doc(alias = "webgl")]
pub mod opengl {
//! OpenGL NDC convention: Z range **[-1, 1]**, Y-up.
//!
Expand Down Expand Up @@ -147,6 +148,7 @@ pub mod vulkan {
}
}

#[doc(alias = "webgpu")]
pub mod directx {
//! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up.
//!
Expand Down
2 changes: 2 additions & 0 deletions src/dcamera/lh/proj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//! * [`directx`] - NDC Z range **[0, 1]**, Y-up
//! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down

#[doc(alias = "webgl")]
pub mod opengl {
//! OpenGL NDC convention: Z range **[-1, 1]**, Y-up.
//!
Expand Down Expand Up @@ -154,6 +155,7 @@ pub mod vulkan {
}
}

#[doc(alias = "webgpu")]
pub mod directx {
//! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up.
//!
Expand Down
2 changes: 2 additions & 0 deletions src/dcamera/rh/proj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//! * [`directx`] - NDC Z range **[0, 1]**, Y-up
//! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down

#[doc(alias = "webgl")]
pub mod opengl {
//! OpenGL NDC convention: Z range **[-1, 1]**, Y-up.
//!
Expand Down Expand Up @@ -161,6 +162,7 @@ pub mod vulkan {
}
}

#[doc(alias = "webgpu")]
pub mod directx {
//! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up.
//!
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ and benchmarks.
The minimum supported Rust version is `1.68.2`.

*/
#![doc(html_root_url = "https://docs.rs/glam/0.33.1")]
#![doc(html_root_url = "https://docs.rs/glam/0.33.2")]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(target_arch = "spirv", feature(repr_simd))]
#![cfg_attr(target_arch = "wasm64", feature(simd_wasm64))]
Expand Down
4 changes: 4 additions & 0 deletions templates/camera_proj.rs.tera
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//! * [`directx`] - NDC Z range **[0, 1]**, Y-up
//! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down

#[doc(alias = "webgl")]
pub mod opengl {
//! OpenGL NDC convention: Z range **[-1, 1]**, Y-up.
//!
Expand Down Expand Up @@ -99,6 +100,9 @@ pub mod opengl {
{% set yflip = false %}
{% endif %}

{% if api == "directx" %}
#[doc(alias = "webgpu")]
{%- endif %}
pub mod {{ api }} {
//! {{ api_desc }} NDC convention: Z range **{{ api_z }}**, {{ api_y }}.
//!
Expand Down
Loading