Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for GPGPU-Based Fluid Particle Simulation
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[SIMULATION_DENSITY] - ✦
[VISCOSITY] - ✦
[INTERACTION_RADIUS] - ✦
[COLOR_GRADIENT]
gpgpu-fluid-particle-simulation-threejs.txt
Act as a Graphics Engineer. Create a high-performance GPGPU particle simulation using Three.js and the GPUComputationRenderer. The system should simulate fluid-like motion with a [VISCOSITY] setting and a density of [SIMULATION_DENSITY]. Implement a mouse-repulsion force with an [INTERACTION_RADIUS]. Use a custom fragment shader for particle color mapping based on velocity using a [COLOR_GRADIENT]. Ensure the code includes the texture-to-buffer mapping and handle window resizing to maintain coordinate consistency.
Example Output
"The AI will output a complex implementation using GPUComputationRenderer, detailing the compute shaders for position and velocity updates."