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

Advanced WebGL Glass Refraction Shader

Customize the variables below to instantly engineer your prompt.

Required Variables

webgl-glass-refraction-shader.txt
Act as a Ray-Tracing Graphics Programmer. Write an incredibly dense, mathematically complex GLSL fragment shader that completely bypasses standard rasterization to render a hyper-realistic, refractive glass geometry using pure ray-marching logic contained entirely within a single 2D quad. You must programmatically implement Snell's Law to calculate exact light refraction vectors utilizing an aggressive [INDEX_OF_REFRACTION]. Force the shader to physically simulate [CHROMATIC_DISPERSION] (the splitting of white light) by slightly offsetting the IOR float for the Red, Green, and Blue light channels independently. The shader must aggressively sample an external [ENVIRONMENT_CUBEMAP] (HDRI) to generate hyper-accurate, warped background distortions and surface specular reflections based on Schlick's approximation.

Example Text Output

"A mathematically intense shader that renders realistic, physically accurate glass artifacts with violent light splitting and perfect environmental reflections running at 60fps."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced WebGL Glass Refraction Shader" prompt used for?

A mathematically intense shader that renders realistic, physically accurate glass artifacts with violent light splitting and perfect environmental reflections running at 60fps.

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.