diff --git a/WpfExtended/Effects/Snowfall/Snowfall.fx b/WpfExtended/Effects/Snowfall/Snowfall.fx index aebea10..8073a5c 100644 --- a/WpfExtended/Effects/Snowfall/Snowfall.fx +++ b/WpfExtended/Effects/Snowfall/Snowfall.fx @@ -113,7 +113,7 @@ float4 main(float2 uv : TEXCOORD) : COLOR float2 tiledUV = uv * FlakeSize; // Get the random value to decide where to place a snowflake - float randVal = snoise(floor(tiledUV)); + float randVal = (snoise(floor(tiledUV)) + 1) / 2; // Generate a dynamic circular snowflake if within the threshold if (randVal > Threshold) diff --git a/WpfExtended/Effects/Snowfall/Snowfall.ps b/WpfExtended/Effects/Snowfall/Snowfall.ps index 906f082..15d0b79 100644 Binary files a/WpfExtended/Effects/Snowfall/Snowfall.ps and b/WpfExtended/Effects/Snowfall/Snowfall.ps differ diff --git a/WpfExtended/WpfExtended.csproj b/WpfExtended/WpfExtended.csproj index a30d407..40bec40 100644 --- a/WpfExtended/WpfExtended.csproj +++ b/WpfExtended/WpfExtended.csproj @@ -6,7 +6,7 @@ true true License.txt - 0.7.4 + 0.7.5 latest Extension library for Windows Presentation Platform.