Page 6 of 6

Re: Water shaders, OpenMW vs MGEXE

Posted: 10 Sep 2019, 09:12
by Sagacity
AnyOldName3 wrote: 08 Sep 2019, 20:27 Lots of the water's goodness in the vanilla engine is due to the shaders being fed other data that OpenMW isn't feeding its shader. There are improvements to be made that can be done in the shader itself, but to replicate vanilla or most MGE XE shaders perfectly, you'd need a chunk of extra work on the engine side.
I was not aware of what was or was not exposed to the OpenMW shader, and assumed, perhaps wrongly, what I'm used to being exposed in shaders. I apologize. What isn't currently exposed, and why? I believe it'd be a very good solution to expose more information to shaders so that we can cover more functionality that MGE covers.

Re: Water shaders, OpenMW vs MGEXE

Posted: 10 Sep 2019, 10:41
by CMAugust
It's mentioned earlier in the thread. Morrowind used dynamically generated textures for its pixel-shaded water, as showcased in Nvidia's GDC2002 presentation.

Re: Water shaders, OpenMW vs MGEXE

Posted: 11 Sep 2019, 04:15
by Sagacity
I think you misunderstand. I knew that Morrowind used dynamically generated textures for it's water. I was not aware of what was or was not exposed to the shader currently in use for OpenMW and assumed it had the necessary information exposed to facilitate things like dynamic normal creation, and such. Apparently, this isn't true.

Re: Water shaders, OpenMW vs MGEXE

Posted: 11 Sep 2019, 14:23
by AnyOldName3
The shader that actually draws the water is fed the dynamic normal map as an input as it's generated in its own rendering pass. As we don't have that pass, we can't feed its output as an input to anything else.