11-24-2024, 02:12 PM
(This post was last modified: 11-24-2024, 02:39 PM by scurest.
Edit Reason: add alpha info
)
(11-24-2024, 12:38 PM)Joshex Wrote: At closer inspection n64 ocarina of time uses 2 water textures! one is just white ripple lines with alpha transparency, it moves on +y+x, the other texture is the blue water base texture and it moves on +y only, each texture moves at different speeds with the alpha transparent layer moving faster than the water base texture.
Here?
I think there's only one water texture, this one.
You can check how N64 shaders work with GLideN64-Scene-Ripper. Unfortunately it's not accurate for the water in Kokiri Forest, but I think the "shape" of the shader is right.
According to that, the water color is two "layers" blended together 50-50. Each layer uses the same texture, just with different UVs, so the two layers can scroll independently. So it's like color = 0.5 * texture(UV0) + 0.5 * texture(UV1).
edit: Btw the alpha is painted on, not from a texture. Looks like 99/255 (~40%).