@@ -35,9 +35,6 @@ uniform sampler2D coordsTexture;
35
35
36
36
uniform vec3 inkColor;
37
37
uniform float scale;
38
- uniform float noiseScale;
39
- uniform float noisiness;
40
- uniform float thickness;
41
38
uniform float contour;
42
39
uniform float cyan;
43
40
uniform float magenta;
@@ -166,7 +163,7 @@ void main() {
166
163
167
164
vec4 color = texture(colorTexture, vUv);
168
165
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);
170
167
color *= normalEdge;
171
168
color *= 3.;
172
169
@@ -200,9 +197,6 @@ class Post {
200
197
this . normalFBO = getFBO ( 1 , 1 ) ;
201
198
this . params = {
202
199
scale : 100 ,
203
- noiseScale : 0.05 ,
204
- noisiness : 0.2 ,
205
- thickness : 1 ,
206
200
contour : 1 ,
207
201
inkColor : new Color ( 0 , 0 , 0 ) ,
208
202
cyan : 1 ,
@@ -218,9 +212,6 @@ class Post {
218
212
normalTexture : { value : this . normalFBO . texture } ,
219
213
inkColor : { value : this . params . inkColor } ,
220
214
scale : { value : this . params . scale } ,
221
- noiseScale : { value : this . params . noiseScale } ,
222
- noisiness : { value : this . params . noisiness } ,
223
- thickness : { value : this . params . thickness } ,
224
215
contour : { value : this . params . contour } ,
225
216
cyan : { value : this . params . cyan } ,
226
217
magenta : { value : this . params . magenta } ,
@@ -267,21 +258,6 @@ class Post {
267
258
. onChange ( async ( v ) => {
268
259
this . renderPass . shader . uniforms . scale . value = v ;
269
260
} ) ;
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
- } ) ;
285
261
controllers [ "contour" ] = gui
286
262
. add ( this . params , "contour" , 0.0 , 10 )
287
263
. onChange ( async ( v ) => {
0 commit comments