Jump to content
Sign in to follow this  
Andrew

Arma 2 glass reflection in the shadow - help

Recommended Posts

Hi. I am trying to create table surface with reflection. But I have trouble - the reflection is not showed in the shadow, when the sun shines the reflection works well, but the table is most time in the shadow and reflection is invisible.

You can see on the screenshot that lit part of the table has reflection but another part hasn't reflection. How can I fix it?

rvmat for the table surface:

---glass_reflection.rvmat---

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=21.299999;
renderFlags[]=
{
    "NoAlphaWrite"
};
nextPass="MyHouse\glass-pass2.rvmat";
PixelShaderID="Glass";
VertexShaderID="Glass";
class Stage1
{
    texture="#(ai,64,64,1)fresnelGlass()";
    uvSource="none";
};
class Stage2
{
    texture="MyHouse\env.paa";
    uvSource="none";
};

---glasspass2.rvmat---

ambient[]={1.000000,1.000000,1.000000,1.000000};
diffuse[]={1.000000,1.000000,1.000000,1.000000};
forcedDiffuse[]={0.000000,0.000000,0.000000,0.000000};
emmisive[]={0.000000,0.000000,0.000000,1.000000};
specular[]={0.000000,0.000000,0.000000,0.000000};
specularPower=0.000000;
renderFlags[]=
{
    "NoColorWrite"
};
PixelShaderID="AlphaShadow";
VertexShaderID="Basic";

Edited by Max Power

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×