Skip to content

Commit

Permalink
Merge pull request #322 from Tzugimaa/patch-3
Browse files Browse the repository at this point in the history
Update LCAS.hlsl
  • Loading branch information
Blinue authored Feb 23, 2022
2 parents c519672 + b1adddf commit 6addc04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Effects/LCAS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SamplerState sam;
float sharpness;

//!CONSTANT
//!DEFAULT 0.1
//!DEFAULT 0.2
//!MIN 0
//!MAX 1
float threshold;
Expand All @@ -45,7 +45,7 @@ float4 Pass1(float2 pos) {
float3 h = INPUT.Sample(sam, pos + float2(0, inputPtY)).rgb;

// Edge checker
float edge = length(abs(d - f) + abs(b - h)) / 2;
float edge = length(abs(d - f) + abs(b - h));

// Soft min and max.
// b
Expand Down

0 comments on commit 6addc04

Please sign in to comment.