This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
PostProcessing/Runtime/Effects Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 2.1.5] - 2019-xx-xx
8+
9+ ### Fixed
10+ - LDR Color grading in gamma mode no longer produces banding artifacts on Mali GPUs on OpenGL ES2.
11+
712## [ 2.1.4] - 2019-02-27
813
914### Fixed
Original file line number Diff line number Diff line change 11using System ;
22
3+ using UnityEngine . Experimental . Rendering ;
4+
35namespace UnityEngine . Rendering . PostProcessing
46{
57 /// <summary>
@@ -779,19 +781,25 @@ Texture2D GetCurveTexture(bool hdr)
779781 return m_GradingCurves ;
780782 }
781783
784+ static bool IsRenderTextureFormatSupportedForLinearFiltering ( RenderTextureFormat format )
785+ {
786+ var gFormat = GraphicsFormatUtility . GetGraphicsFormat ( format , RenderTextureReadWrite . Linear ) ;
787+ return SystemInfo . IsFormatSupported ( gFormat , FormatUsage . Linear ) ;
788+ }
789+
782790 static RenderTextureFormat GetLutFormat ( )
783791 {
784792 // Use ARGBHalf if possible, fallback on ARGB2101010 and ARGB32 otherwise
785793 var format = RenderTextureFormat . ARGBHalf ;
786794
787- if ( ! format . IsSupported ( ) )
795+ if ( ! IsRenderTextureFormatSupportedForLinearFiltering ( format ) )
788796 {
789797 format = RenderTextureFormat . ARGB2101010 ;
790798
791799 // Note that using a log lut in ARGB32 is a *very* bad idea but we need it for
792800 // compatibility reasons (else if a platform doesn't support one of the previous
793801 // format it'll output a black screen, or worse will segfault on the user).
794- if ( ! format . IsSupported ( ) )
802+ if ( ! IsRenderTextureFormatSupportedForLinearFiltering ( format ) )
795803 format = RenderTextureFormat . ARGB32 ;
796804 }
797805
You can’t perform that action at this time.
0 commit comments