Various touchups in preparation for a first release.
This commit is contained in:
parent
dafbde8e99
commit
5c368503e5
20 changed files with 279 additions and 78 deletions
|
|
@ -1,9 +1,14 @@
|
|||
/*
|
||||
Dirty camera effect from MariENB
|
||||
(C)2012-2019 Marisa Kirisame
|
||||
*/
|
||||
vec3 lensdirt( in vec3 res, in vec2 coord )
|
||||
{
|
||||
vec2 nr = textureSize(InputTexture,0)/textureSize(NoiseTexture,0);
|
||||
vec3 ncolc = texture(NoiseTexture,coord*dirtmc*nr).rgb;
|
||||
vec2 bresl = textureSize(InputTexture,0);
|
||||
vec2 nr = vec2(1.0,bresl.y/bresl.x);
|
||||
float ncol = texture(NoiseTexture,coord*dirtmc*nr).x;
|
||||
vec2 ds = vec2(res.r+res.g,res.g+res.b)/2.0;
|
||||
res = mix(res,(ncolc.r+1.0)*res,dirtcfactor*clamp(1.0-(ds.x+ds.y)*0.25,0.0,1.0));
|
||||
res = mix(res,(ncol+1.0)*res,dirtcfactor*clamp(1.0-(ds.x+ds.y)*0.25,0.0,1.0));
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue