View Full Version: Windows

Bushwars > Suggestions > Windows



Title: Windows
Description: Fresnel glass


Sigma-6 - August 1, 2007 08:12 PM (GMT)
Hi there. I tried out your Alouette, and I really enjoyed it, so I applied the BIS Fresnel glass material to it. Perhaps you'd like to do the same in the future. The code for the material is as follows (you just set it up in the config the same as any other material):

ambient[] = {1,1,1,1};
diffuse[] = {1,1,1,1};
forcedDiffuse[] = {0,0,0,0};
emmisive[] = {0,0,0,1};
specular[] = {1,1,1,0};
specularPower = 5;
renderFlags[] = {"NoAlphaWrite"};
nextPass = "ca\data\sklo-pass2.rvmat";
PixelShaderID = "Glass";
VertexShaderID = "Glass";
class Stage1
{
texture = "#(ai,64,64,1)fresnelGlass()";
uvSource = "none";
};
class Stage2
{
texture = "ca\wheeled\data\env_co.paa";
uvSource = "none";
};
//};



Enjoy! Trust me, it looks great. You don't have to do anything to your diffuse texture, just apply this material to any selections using your glass texture. Try it out, the Alouette looks fantastic with it.

-Sigma-6

ObmaR - August 2, 2007 04:34 AM (GMT)
Yea, does look good, thanks for the script. Had people say the glass looked to out of the factory. This realy does the trick.

Thanks for the help




Hosted for free by InvisionFree