Material - Basic glass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "^ " to "")
m (Text replacement - ";[ ]+ " to "; ")
Line 5: Line 5:
= First RVMAT =
= First RVMAT =


  renderFlags[]={NoAlphaWrite};  
  renderFlags[]={NoAlphaWrite};
  nextPass=ofp2\Data\glass_2pass.rvmat;
  nextPass=ofp2\Data\glass_2pass.rvmat;



Revision as of 00:55, 8 August 2021

Two pass material

First pass draws the surface, second affects Alfa and Z-buffer to keep correct visibility and shadow casting.

First RVMAT

renderFlags[]={NoAlphaWrite};
nextPass=ofp2\Data\glass_2pass.rvmat;


Second RVMAT (sklo-pass2.rvmat)

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