mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-15 14:59:30 +00:00
Adjust snowfall noise
This commit is contained in:
@@ -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)
|
||||
|
||||
Binary file not shown.
@@ -6,7 +6,7 @@
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseFile>License.txt</PackageLicenseFile>
|
||||
<Version>0.7.4</Version>
|
||||
<Version>0.7.5</Version>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Description>Extension library for Windows Presentation Platform.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user