Skip to content

Commit

Permalink
Fix domain warp fractal gain slider not functioning in UI, updated Em…
Browse files Browse the repository at this point in the history
…scripten
  • Loading branch information
Auburn committed Jan 28, 2024
1 parent 8e296ac commit 93e86db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions WebPreviewApp/build.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
$scriptPath = $PSScriptRoot
$emsdkVer = "3.1.44"
$emsdkPath = Join-Path -Path $PSScriptRoot -ChildPath "emsdk"
$emsdkVer = "3.1.52"
$emsdkPath = Join-Path -Path $PSScriptRoot -ChildPath "emsdk" | Join-Path -ChildPath $emsdkVer

if (Test-Path -Path $emsdkPath -PathType Container) {
Write-Host "Found existing emsdk"
./emsdk/emsdk_env.ps1
& "$emsdkPath\emsdk_env.ps1"
} else {
Write-Host "Building emsdk"
git clone --branch $emsdkVer "https://github.com/emscripten-core/emsdk.git" $emsdkPath
./emsdk/emsdk.ps1 install $emsdkVer
./emsdk/emsdk.ps1 activate $emsdkVer
& "$emsdkPath\emsdk.ps1" install $emsdkVer
& "$emsdkPath\emsdk.ps1" activate $emsdkVer
}

emcc --version
Expand Down
2 changes: 1 addition & 1 deletion WebPreviewApp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class FastNoiseLitePreviewApp : public ImGui_Application
fnlWarp.SetFractalLacunarity(fnlDomainWarpFractalLacunarity);
texUpdate = true;
}
if (ImGui::DragFloat("Gain", &fnlFractalGain, 0.01f))
if (ImGui::DragFloat("Gain", &fnlDomainWarpFractalGain, 0.01f))
{
fnlWarp.SetFractalGain(fnlDomainWarpFractalGain);
texUpdate = true;
Expand Down

0 comments on commit 93e86db

Please sign in to comment.