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

Commit c555e12

Browse files
committed
Force branching on vignette (faster on Mali)
1 parent 2c80af5 commit c555e12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PostProcessing/Shaders/Builtins/Uber.shader

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Shader "Hidden/PostProcessing/Uber"
1111
#pragma multi_compile __ VIGNETTE
1212
#pragma multi_compile __ GRAIN
1313
#pragma multi_compile __ FINALPASS
14-
14+
1515
#include "../StdLib.hlsl"
1616
#include "../Colors.hlsl"
1717
#include "../Sampling.hlsl"
@@ -148,6 +148,7 @@ Shader "Hidden/PostProcessing/Uber"
148148

149149
#if VIGNETTE
150150
{
151+
UNITY_BRANCH
151152
if (_Vignette_Mode < 0.5)
152153
{
153154
half2 d = abs(uv - _Vignette_Center) * _Vignette_Settings.x;

0 commit comments

Comments
 (0)