Add differentiated rendering
This commit is contained in:
parent
15836f2876
commit
1578c8796a
7 changed files with 59 additions and 23 deletions
|
|
@ -75,11 +75,15 @@ export class BrushPipeline {
|
|||
format: 'rgba16float',
|
||||
blend: {
|
||||
color: {
|
||||
operation: 'add',
|
||||
srcFactor: 'zero',
|
||||
dstFactor: 'one',
|
||||
},
|
||||
alpha: {
|
||||
operation: 'max',
|
||||
srcFactor: 'one',
|
||||
dstFactor: 'one',
|
||||
},
|
||||
alpha: {},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -45,5 +45,6 @@ fn fragment(
|
|||
discard;
|
||||
}
|
||||
|
||||
return vec4(clamp((settings.brushWidth - distance) / settings.brushBlurWidth, 0, 1));
|
||||
let strength = clamp((settings.brushWidth - distance) / settings.brushBlurWidth, 0, 1);
|
||||
return vec4(0, 0, 0, strength);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue