Skip to content

Commit 3663a23

Browse files
committed
tweaked settings
1 parent f341d88 commit 3663a23

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

post-patch-i/post.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ uniform sampler2D coordsTexture;
3535
3636
uniform vec3 inkColor;
3737
uniform float scale;
38-
uniform float noiseScale;
39-
uniform float noisiness;
40-
uniform float thickness;
4138
uniform float contour;
4239
uniform float cyan;
4340
uniform float magenta;
@@ -166,7 +163,7 @@ void main() {
166163
167164
vec4 color = texture(colorTexture, vUv);
168165
float normalEdge = 1.- length(sobel(normalTexture, vUv, size, contour));
169-
normalEdge = smoothstep(.5-thickness, .5+thickness, normalEdge);
166+
normalEdge = smoothstep(.5-e, .5+e, normalEdge);
170167
color *= normalEdge;
171168
color *= 3.;
172169
@@ -200,9 +197,6 @@ class Post {
200197
this.normalFBO = getFBO(1, 1);
201198
this.params = {
202199
scale: 100,
203-
noiseScale: 0.05,
204-
noisiness: 0.2,
205-
thickness: 1,
206200
contour: 1,
207201
inkColor: new Color(0, 0, 0),
208202
cyan: 1,
@@ -218,9 +212,6 @@ class Post {
218212
normalTexture: { value: this.normalFBO.texture },
219213
inkColor: { value: this.params.inkColor },
220214
scale: { value: this.params.scale },
221-
noiseScale: { value: this.params.noiseScale },
222-
noisiness: { value: this.params.noisiness },
223-
thickness: { value: this.params.thickness },
224215
contour: { value: this.params.contour },
225216
cyan: { value: this.params.cyan },
226217
magenta: { value: this.params.magenta },
@@ -267,21 +258,6 @@ class Post {
267258
.onChange(async (v) => {
268259
this.renderPass.shader.uniforms.scale.value = v;
269260
});
270-
controllers["noiseScale"] = gui
271-
.add(this.params, "noiseScale", 0, 0.1)
272-
.onChange(async (v) => {
273-
this.renderPass.shader.uniforms.noiseScale.value = v;
274-
});
275-
controllers["noisiness"] = gui
276-
.add(this.params, "noisiness", 0, 1)
277-
.onChange(async (v) => {
278-
this.renderPass.shader.uniforms.noisiness.value = v;
279-
});
280-
controllers["thickness"] = gui
281-
.add(this.params, "thickness", 0.0, 3)
282-
.onChange(async (v) => {
283-
this.renderPass.shader.uniforms.thickness.value = v;
284-
});
285261
controllers["contour"] = gui
286262
.add(this.params, "contour", 0.0, 10)
287263
.onChange(async (v) => {

0 commit comments

Comments
 (0)