mirror of
https://github.com/libretro/slang-shaders.git
synced 2024-06-02 19:38:36 -04:00
Newpixie-mini adjustments.
This commit is contained in:
parent
852f729153
commit
f6a72b4ac1
|
@ -141,11 +141,10 @@ void main()
|
|||
i = (1.0-i) * 0.85 + 0.15;
|
||||
|
||||
/* Level adjustment (curves) */
|
||||
col *= vec3(0.95,1.05,0.95);
|
||||
col = clamp(col*1.3 + 0.75*col*col + 1.25*col*col*col*col*col,vec3(0.0),vec3(10.0));
|
||||
col = clamp(col + col*col + col*col*col*col*col,vec3(0.0),vec3(10.0));
|
||||
|
||||
/* Vignette. Increase the 6.0 factor for greater burnout effect in the center of the screen. */
|
||||
float vig = ((1.0-0.99*params.vignette) + 1.0*6.0*curved_uv.x*curved_uv.y*(1.0-curved_uv.x)*(1.0-curved_uv.y));
|
||||
/* Vignette. Increase the 4.0 factor for greater burnout effect in the center of the screen. */
|
||||
float vig = ((1.0-0.99*params.vignette) + 1.0*4.0*curved_uv.x*curved_uv.y*(1.0-curved_uv.x)*(1.0-curved_uv.y));
|
||||
vig = 1.3*pow(vig,0.5);
|
||||
col *= vig;
|
||||
/* Compensate the lack of vignette, in case we decide to comment it out for performance reasons */
|
||||
|
|
Loading…
Reference in a new issue