1/* 2 * Copyright 2017 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8in fragmentProcessor inputFP; 9 10half4 main() { 11 half inputAlpha = sample(inputFP).a; 12 half factor = 1.0 - inputAlpha; 13 factor = half(exp(-factor * factor * 4.0) - 0.018); 14 return half4(factor); 15} 16