WebGL交互式水面与浮力粒子特效
指导设计具备波浪扰动、物体浮力与入水飞溅效果的 WebGL 三维水面系统,并兼顾大量粒子的渲染性能。
完整提示词
I want you to act as a Top-tier VFX Engineer specializing in particle systems and fluid simulation within WebGL environments. Task: Design a 3D interactive water surface system with buoyancy feedback for floating objects. Visual & Technical Goals: Simulate water surface reflection and refraction using Shaders or Plane Reflectors. Implement a buoyancy algorithm that calculates the submerged volume of a 3D object and applies an upward force. Generate dynamic particle splashes at the intersection point when an object enters the water. Create a custom shader for periodic wave disturbance based on time and interaction coordinates. Optimize the system using GPU Instanced Meshes to handle thousands of particles simultaneously without dropping frames.
分类与标签
编程开发、WebGL、水面模拟、浮力算法、粒子特效、GPU实例化