Skip to content

Commit

Permalink
Make wasm app background transparent (f3d-app#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk authored Jun 6, 2024
1 parent 0943cde commit 66560ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/vtk_commit_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7e954a92fba020b160a07420403248f6be87f2b0
ba47baf259f14e00dfbd0d2e54333b3f6c0bc946
3 changes: 3 additions & 0 deletions library/src/window_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ window_impl::window_impl(const options& options, Type type)
this->Internals->RenWin->SetWindowInfo("jni");
#endif
}
#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 3, 20240606)
this->Internals->RenWin->EnableTranslucentSurfaceOn();
#endif
this->Internals->RenWin->SetWindowName("f3d");
this->Internals->RenWin->AddRenderer(this->Internals->Renderer);
this->Internals->Camera = std::make_unique<detail::camera_impl>();
Expand Down
3 changes: 0 additions & 3 deletions webassembly/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
<style>
#main {
min-height: 70vh;
border: 1px solid var(--bulma-primary);
border-radius: 0.5rem;
overflow: hidden;
}
</style>
</head>
Expand Down

0 comments on commit 66560ca

Please sign in to comment.