summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-10 00:35:18 +0100
committerskal <pascal.massimino@gmail.com>2026-02-10 00:35:18 +0100
commit5631ab5868b4291c8a65a309e029c731d820fa44 (patch)
tree59521fc02f510071b70b35a9edd805c977d31267 /tools
parent0285ffc856464c5ce2f836eb7dc8b9ca79a97117 (diff)
fix: Use 16:9 aspect ratio and object-fit contain for canvas
Default resolution: 1280x720 (16:9) Canvas uses object-fit: contain to preserve aspect ratio Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/shader_editor/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/shader_editor/index.html b/tools/shader_editor/index.html
index de22117..5aff71f 100644
--- a/tools/shader_editor/index.html
+++ b/tools/shader_editor/index.html
@@ -36,7 +36,7 @@ body {
width: 100%;
height: 100%;
background: #000;
- display: block;
+ object-fit: contain;
}
.fps-counter {
@@ -248,10 +248,10 @@ body {
<div class="control-group">
<label>Resolution:
<select id="resolution">
- <option value="512x512">512×512</option>
- <option value="1024x1024" selected>1024×1024</option>
+ <option value="1280x720" selected>1280×720</option>
<option value="1920x1080">1920×1080</option>
- <option value="1280x720">1280×720</option>
+ <option value="1024x576">1024×576</option>
+ <option value="960x540">960×540</option>
</select>
</label>
</div>