You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add visibility-based animation pause (IntersectionObserver + wrapped rAF)
- Zero CPU usage when widget scrolls out of view
- Apply host style variables via useHostStyles
- Support transparent WebGL background (alpha: true)
- Use light-dark() for theme-aware fallback colors
- Tool no longer echoes code back in result
- Document performance features in README
const controls = new OrbitControls(camera, renderer.domElement);
109
112
controls.enableDamping = true;
@@ -128,7 +131,7 @@ animate();
128
131
\`\`\`
129
132
130
133
## Tips
131
-
- Always set \`renderer.setClearColor()\` to a dark color
134
+
- Use \`alpha: true\` for transparent backgrounds that blend with host UI
132
135
- Keep light intensity ≤ 1 to avoid washed-out scenes
133
136
- Use \`MeshStandardMaterial\` for realistic lighting
134
137
- For animations, use \`requestAnimationFrame\`
@@ -157,7 +160,7 @@ export function createServer(): McpServer {
157
160
{
158
161
title: "Show Three.js Scene",
159
162
description:
160
-
"Render an interactive 3D scene with custom Three.js code. Available globals: THREE, OrbitControls, EffectComposer, RenderPass, UnrealBloomPass, canvas, width, height.",
163
+
"Render an interactive 3D scene with custom Three.js code. Supports transparent backgrounds (alpha: true) for seamless host UI integration. Available globals: THREE, OrbitControls, EffectComposer, RenderPass, UnrealBloomPass, canvas, width, height.",
161
164
inputSchema: {
162
165
code: z
163
166
.string()
@@ -171,16 +174,14 @@ export function createServer(): McpServer {
0 commit comments