Page 1 of 1

Wings3D viewport shader

Posted: 20 Feb 2015, 00:28
by rattle
If there's still people around messing with Wings, I've worked on a viewport shader that replaces the Hemispherical Lighting shader that comes with it.

The shader renders normal maps, specular lighting and rim light for funsies.

Here's an example:
Image


Image

The shader takes diffuse and normal maps as inputs.
Material diffuse color gets applied as well.

Ambient now controls the color for the rim lighting and is ignored.
Specular controls the color of the specular highlights.
Shininess controls the intensity of the specularity as well as the rim lighting.

To disable rim or specular lighting set the respective colors to black.

At this moment it is not possible to use a spec map or any other maps or use additional lights because the program is very limited in what it exposes. Could possibly hardcode some custom lights...

Extract both files to ..\wings3d_1.5.3\lib\wings-1.5.3\shaders or what ever your version of Wings is and make a backup of the original shader if you want to.

I take no responsibility for any harm caused etc.. ;)

Re: Wings3D viewport shader

Posted: 20 Feb 2015, 01:30
by smoth
Image

Re: Wings3D viewport shader

Posted: 22 Feb 2015, 08:39
by rattle
Image

I think it looks pretty good, not necessary but having a material similar to zbrush clay isn't bad.
Might add roughness / metallic by using the internal cube map later controlled by the emissive channel as a make shift slider..