New demo of reflections and refractions with fragment shader

I realy hate it when this fora decides that you've been writing on a post for too long, and forces you to login again. (Flushing your post down the drain.)

So you get the short version:
It looks nice, but the specular highlights are placed on wrong places. The reflected highlight should not be further away from the water surface than the "direct" highlight.

There's also something odd about the blue tint in the reflection, and also in the ratio between reflectied and "refracted" light. I can't put my finger on it though, so I might be wrong.
 
Basic said:
It looks nice, but the specular highlights are placed on wrong places. The reflected highlight should not be further away from the water surface than the "direct" highlight.

I don't understand what you're trying to say here ... :-?

Basic said:
There's also something odd about the blue tint in the reflection, and also in the ratio between reflectied and "refracted" light. I can't put my finger on it though, so I might be wrong.

The reflection shouldn't have any blue tint in it, the refraction does though.
 
The upper left specular highlight is located ~2 wall-tiles above the water surface, which is slightly higher up than the camera. I assumed that the lower specular left highlight came from the same light, but going lightsource=>specular on wall=>reflection in water. But that highlight is placed ~4 wall-tiles below the surface (or equivalently ~4 wall-tiles above the surface before reflection).

It's not possible to place a light to give those two highlights, the lower left highlight must be somewhere 0-2 wall-tiles below the surface, or not be visible at all.

Hmmm, just realized something. Am I wrong when I think it's a specular highlight? Is it just a "firefly" in mid air? Then OK, the reflection could be right.

The reflection shouldn't have any blue tint in it, the refraction does though.

I agree. I just thought it looked like the reflection had a blue tint. In the part further away, you can't see anything from the texture below surface, but there's still a clear blue tint. Maybe it gives a different feeling when seen in motion.
 
Ah ... now I see what you mean, you're just judging the screenshot and haven't seen it in action :)
I was a little puzzled when you mentioned specular highlights ... there's only diffuse lighting in there. The white thingy is the light that's moving around in there. At the screenshot you're a little above the lights.
 
You know what's missing though?

Those lights shouldn't just reflect, they should make the water's surface shine somehow. Ever looked in the general direction of the sun or moon over water?
 
Back
Top