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
3 changes: 2 additions & 1 deletion com.unity.postprocessing/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.5.0] - 2025-06-12
## [3.5.0] - 2025-06-18

### Added
- Added Switch2 platform support

### Fixed
- Remove support for PVRTC format in Unity 6.1 or newer
- Fixed issue with FastSign on WebGL/Safari (IN-71005)
- Fixed compute based effects not supported on OpenGLES
- Documentation updates

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ float3 LiftGammaGainHDR(float3 c, float3 lift, float3 invgamma, float3 gain)

// ACEScg will output negative values, as clamping to 0 will lose precious information we'll
// mirror the gamma function instead
return FastSign(c) * pow(abs(c), invgamma);
return sign(c) * pow(abs(c), invgamma);
}

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ float4 Max3(float4 a, float4 b, float4 c)

// https://twitter.com/SebAaltonen/status/878250919879639040
// madd_sat + madd
// Incorrect result on WebGL/Safari with A17 or M3 processors.
float FastSign(float x)
{
return saturate(x * FLT_MAX + 0.5) * 2.0 - 1.0;
Expand Down