gecko
July 23rd, 2012, 17:41
Have a look at this shot.
69627
I made a high contrast specular texture consisting of black and white stripes and enabled the high gloss shader in the shaders.xml. I've included the relevant lines below, where I changed the bold value from false to true to enable the gloss:
<ModelSpecularGloss Desc="Vertex lighting w/ Specular modulated by Gloss map"
Lighting="True" SpecularEnable="True"
SrcBlend="One" DestBlend="Zero"
ZEnable="True" ZFunc="[ZFunc]" ZWriteEnable="True" ZBias="0" FogEnable="True"
AlphaBlendEnable="true" AlphaTestEnable="true" AlphaRef="8" MultiSample="True"
ColorArg10="Texture" ColorOp0="Modulate" ColorArg20="Diffuse"
AlphaArg10="Texture" AlphaOp0="SelectArg1" AlphaArg20="Current"
Texture0="0"
ColorArg01="Current" ColorArg11="Specular" ColorOp1="MultiplyAdd" ColorArg21="Texture"
AlphaArg11="Current" AlphaOp1="Modulate" AlphaArg21="TFactor"
Texture1="3" TexCoordIndex="0"
/>
The problem is that the unrealistically high level of gloss is still there, but the specular texture does show through beneath it. Does anyone know of a way to get rid of the extra gloss and just keep the specular texture? Any help is much appreciated.
Daniel
69627
I made a high contrast specular texture consisting of black and white stripes and enabled the high gloss shader in the shaders.xml. I've included the relevant lines below, where I changed the bold value from false to true to enable the gloss:
<ModelSpecularGloss Desc="Vertex lighting w/ Specular modulated by Gloss map"
Lighting="True" SpecularEnable="True"
SrcBlend="One" DestBlend="Zero"
ZEnable="True" ZFunc="[ZFunc]" ZWriteEnable="True" ZBias="0" FogEnable="True"
AlphaBlendEnable="true" AlphaTestEnable="true" AlphaRef="8" MultiSample="True"
ColorArg10="Texture" ColorOp0="Modulate" ColorArg20="Diffuse"
AlphaArg10="Texture" AlphaOp0="SelectArg1" AlphaArg20="Current"
Texture0="0"
ColorArg01="Current" ColorArg11="Specular" ColorOp1="MultiplyAdd" ColorArg21="Texture"
AlphaArg11="Current" AlphaOp1="Modulate" AlphaArg21="TFactor"
Texture1="3" TexCoordIndex="0"
/>
The problem is that the unrealistically high level of gloss is still there, but the specular texture does show through beneath it. Does anyone know of a way to get rid of the extra gloss and just keep the specular texture? Any help is much appreciated.
Daniel