* Refactor web examples and tutorials - Consolidate web/docs and web/samples into web/examples - Remove literal programming blocks from Markdown tutorials - Replace tutorial_template.html with a fully embedded template in serve.py - Move serve.py to web/examples/serve.py and update dependency rules - Update filament-js wrapper to expose _malloc, _free and set GEN_MIPMAPPABLE usage - Update sample materials and WebGL asset generation within web/examples/CMakeLists.txt - Add python venv instructions and usage details to web/README.md - Remove obsolete examples, Pipfile, and demo templates * Transfer web tutorials and samples to docs_src - Introduce copy_web_docs.py api to deploy and rewrite web sample outputs into the docs output tree - Hook copy_web_docs into docs_src/build/run.py natively - Configure duplicates.json to map WebGL outputs to embedded .md docs - Strip html skeleton out of examples in run.py so they map into markdown cleanly - Update update-docs workflow to pre-build the WebGL target - Remove obsolete remote docs path from src_raw - Add explanatory comments to copy_web_docs.py and run.py - Add index page with thumbnails for Web Tutorials and samples
51 lines
1.0 KiB
HTML
51 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Filament Viewer</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1">
|
|
<link href="https://google.github.io/filament/favicon.png" rel="icon" type="image/x-icon" />
|
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
|
|
<style>
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
main {
|
|
max-width: 800px;
|
|
font-family: "Open Sans";
|
|
margin: auto;
|
|
padding: 10px;
|
|
}
|
|
|
|
filament-viewer {
|
|
width: 100%;
|
|
height: 600px;
|
|
border: none;
|
|
}
|
|
|
|
filament-viewer::part(canvas) {
|
|
border: solid 2px gray;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
|
|
<p>
|
|
<filament-viewer
|
|
enableDrop="true"
|
|
ibl="../web/assets/helmet/default_env/default_env_ibl.ktx"
|
|
intensity="20000" />
|
|
</p>
|
|
|
|
</main>
|
|
<script src="../web/lib/filament.js"></script>
|
|
<script src="https://unpkg.com/gltumble"></script>
|
|
<script src="filament-viewer.js" type="module"></script>
|
|
</body>
|
|
</html>
|