Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#WebGL

Advanced AI Prompt for Ray-Traced Refractive Spheres

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-ray-traced-refractive-spheres.txt
Write a fragment shader that renders a group of refractive spheres using ray-tracing logic within a single quad. Implement Snell's Law for refraction using an [IOR_VALUE] (Index of Refraction). Add [REFLECTION_STRENGTH] based on the Schlick's approximation of Fresnel. Include [DISPERSION] (chromatic aberration inside the glass) by offsetting the IOR for each color channel. Use a [ENVIRONMENT_MAP] (cube map or equirectangular) for the background and reflections.

Example Text Output

"The AI provides a mathematically intense shader that renders realistic glass balls with light splitting and environmental reflections."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Ray-Traced Refractive Spheres" prompt used for?

The AI provides a mathematically intense shader that renders realistic glass balls with light splitting and environmental reflections.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.