3 ms·
The last caustics implementation I looked at (not this one) did the refraction stuff per-pixel in shaders based on a CPU-computed mesh deformation. The more ge
by ajross 13y ago
The last caustics implementation I looked at (not this one) did the refraction stuff per-pixel in shaders based on a CPU-computed mesh deformation.
The more general answer to your question is that in fragment shaders, you can get "non-locality" via texture lookups inside the shader code.
- jarrett 13y ago> you can get "non-locality" via texture lookups inside the shader code. So you define a way to encode arbitrary non-local data as texture data, correct? That is, you're hacking textures as a store for arbitrary data instead of the image data that textures were originally designed to store?
- ramidarigaz 13y agoYep, exactly. There are a number of techniques that take advantage of this. Most notable are bump mapping and normal mapping.