Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 92a90da

Browse files
committed
Force fast-mode on chromas with gles2
1 parent 7244274 commit 92a90da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

PostProcessing/Runtime/Effects/ChromaticAberration.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ public override void Render(PostProcessRenderContext context)
7272
}
7373

7474
var sheet = context.uberSheet;
75-
sheet.EnableKeyword(settings.fastMode
75+
bool fastMode = settings.fastMode || SystemInfo.graphicsDeviceType == GraphicsDeviceType.OpenGLES2;
76+
77+
sheet.EnableKeyword(fastMode
7678
? "CHROMATIC_ABERRATION_LOW"
7779
: "CHROMATIC_ABERRATION"
7880
);

0 commit comments

Comments
 (0)