← テンプレート一覧へ

水の shader

波が動く海のヒーロー背景

LPで読みやすさを保ちながら海面を動かす

入力する内容

要求する出力

既存リポジトリに組み込んだ再利用可能なコンポーネントと設定、必要なスタイルまたはシェーダー、実行可能なデモ、変更ファイル一覧、検証結果と既知の制約

原本のモデル方針 · 実行したモデルではありません

model-agnostic coding agent

原本の利用メモ

  • 画像ではなく、既存コードベースで実装を行う開発エージェント向けプロンプト。

入力を反映したプロンプト

初期値を反映しています。このプロンプトは実行していません。

再利用する原文プロンプト
Implement a reusable Three.js ocean hero background for {{service}}. Build layered directional waves using an appropriate wave model such as Gerstner waves, with coherent displaced normals, restrained Fresnel highlights and {{palette}} colors. The mood is {{mood}}. Expose wave height, speed, direction, camera angle, sunlight and color as a small configuration object. Keep the {{quiet}} region visually quiet for existing HTML headlines and calls to action. Use a procedural sky or a local permitted environment asset, without depending on an external asset URL. Fit the component to its container and handle resizing. Prefer a convincing lightweight treatment over expensive physically exact simulation.

Implementation constraints:
First inspect the existing repository and installed versions. Reuse its routing, styling, build tools and dependency conventions. Use React Three Fiber only if the project already uses it or the integration is clearly justified; otherwise use the existing Three.js integration or a minimal isolated component. Do not assume version-specific APIs: check the installed package documentation and types. Do not change unrelated pages or silently replace the application architecture. Explain any required new dependency before adding it. Dispose GPU resources, remove event listeners and stop rendering when the component is not visible. Respect prefers-reduced-motion and provide a readable non-WebGL fallback. Keep links and controls in accessible HTML above the canvas. Return the changed files, configuration knobs, tests performed and known limitations.

Acceptance criteria:
- The existing headline and CTA remain legible and clickable on mobile and desktop.
- Wave motion loops continuously without sudden time resets, and normals follow the waves.
- Reduced-motion mode shows a still attractive frame.
- Measure performance on one stated desktop and one stated mobile profile; report FPS and quality settings rather than claiming an untested target.
- Unmounting and remounting do not duplicate canvases, animation loops or resize listeners.

要求する確認事項 · 未実施

  • The existing headline and CTA remain legible and clickable on mobile and desktop.
  • Wave motion loops continuously without sudden time resets, and normals follow the waves.
  • Reduced-motion mode shows a still attractive frame.
  • Measure performance on one stated desktop and one stated mobile profile; report FPS and quality settings rather than claiming an untested target.
  • Unmounting and remounting do not duplicate canvases, animation loops or resize listeners.

実行記録

テンプレート記録を保存 ↓

出典と原本の保存

Kumyu Academy creative templates