working puzzle editor?
This commit is contained in:
@@ -32,7 +32,7 @@ vec3 desaturate(vec3 color)
|
||||
|
||||
float dither(float brightness, vec2 inputUv)
|
||||
{
|
||||
float globalScale = 8.0;
|
||||
float globalScale = 8;
|
||||
|
||||
// constants
|
||||
float xRes = u_texInfo.z;
|
||||
@@ -77,7 +77,7 @@ float dither(float brightness, vec2 inputUv)
|
||||
|
||||
float pattern = texture3D(s_ditherSampler, vec3(uv, subLayer)).r;
|
||||
|
||||
float contrast = 8 * scaleExp * brightnessSpacingMultiplier * 0.1;
|
||||
float contrast = 2 * scaleExp * brightnessSpacingMultiplier * 0.1;
|
||||
contrast *= pow(freq.y / freq.x, 1.0);
|
||||
float baseVal = lerp(0.5, brightness, saturate(1.05 / (1 + contrast)));
|
||||
float threshold = 1 - brightnessCurve + 0.6;
|
||||
|
||||
Reference in New Issue
Block a user