Skip to content

Commit

Permalink
[Emscripten, Tutorial26_StateCache]: Enabled build on Emscripten plat…
Browse files Browse the repository at this point in the history
…form
  • Loading branch information
MikhailGorobets committed Aug 26, 2024
1 parent 221f308 commit 7eaad11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ add_subdirectory(Tutorial21_RayTracing)
add_subdirectory(Tutorial22_HybridRendering)
add_subdirectory(Tutorial23_CommandQueues)
add_subdirectory(Tutorial24_VRS)
if(PLATFORM_WIN32 OR PLATFORM_LINUX OR PLATFORM_MACOS)
add_subdirectory(Tutorial25_StatePackager)
if(PLATFORM_WIN32 OR PLATFORM_LINUX OR PLATFORM_MACOS OR PLATFORM_EMSCRIPTEN)
add_subdirectory(Tutorial26_StateCache)
if(NOT PLATFORM_EMSCRIPTEN)
add_subdirectory(Tutorial25_StatePackager)
endif()
endif()
add_subdirectory(Tutorial27_PostProcessing)
2 changes: 1 addition & 1 deletion Tutorials/Tutorial26_StateCache/assets/scene.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ HitInfo IntersectScene(RayInfo Ray, SceneAttribs Scene)

float TestShadow(SceneAttribs Scene, RayInfo Ray)
{
if (Ray.Dir.y <= 0)
if (Ray.Dir.y <= 0.0)
return 0.0;

HitInfo Hit = NullHit();
Expand Down

0 comments on commit 7eaad11

Please sign in to comment.