MGE XE Shaders - Library and Development

Post » Wed Jun 05, 2013 9:53 pm

A home for quality shaders and shader development for http://www.gamesas.com/topic/1461152-shelter-from-magnus-blaze-13-mge-xe/.

To get this off the ground, post the shaders from the MGE XE thread. Please submit a sample screenshot with your shaders.




Shader Index

-- Link ------------------- Sample -----
Accepting submissions...



Shader Development

The shader implementation in MGE XE is significantly different than MGE for performance reasons.

Differences from MGE:
"lastframe" is not available, as causes performance loss with SLI/Crossfire.
"thisframe" is not available, you should always use "lastshader" in the first pass to chain shaders properly.


Available variables:
texture: lastshader, lastpass, depthframe, watertexture
float: fov, time, waterlevel, sunvis, fogstart, fogrange
float2: rcpres
float3: eyevec, eyepos, sunvec, suncol, sunamb, sunpos, fogcol
float4: HDR
matrix: mview, mproj
bool: isInterior, isUnderwater

Lots more info on variables when I have time



To make a shader that MGE XE will load you will need one thing, a technique with a compatible MGEinterface annotation and one or more pixel shader passes:

technique T0 < string MGEinterface="MGE XE 0"; >{    pass { PixelShader = compile ps_3_0 pass1(); }    pass { PixelShader = compile ps_3_0 pass2(); }}
User avatar
LittleMiss
 
Posts: 3412
Joined: Wed Nov 29, 2006 6:22 am

Post » Wed Jun 05, 2013 1:29 pm

HLSL Vignette:

Spoiler

Film Shader:

Spoiler

Colour Mood Shader:

Spoiler

Thanks to Zilav

User avatar
Steph
 
Posts: 3469
Joined: Sun Nov 19, 2006 7:44 am

Post » Wed Jun 05, 2013 11:19 am

Also, it would be good if someone could post that water shader that was floating around awhile ago.

User avatar
Brandi Norton
 
Posts: 3334
Joined: Fri Feb 09, 2007 9:24 pm

Post » Wed Jun 05, 2013 9:34 am

The site still exists: http://mgeshaderlibrary.wikispaces.com/. I've been playing around with some of the shaders for the past few days. With Hrnchmd's info, it should be easier to update them.

A couple film grain shaders have been made in the past, one of them by Vtastek if I remember correctly. I cannot find either, and I lost the one I had been working on after a hard drive failure.

User avatar
m Gardner
 
Posts: 3510
Joined: Sun Jun 03, 2007 8:08 pm


Return to III - Morrowind