daily pastebin goal
31%
SHARE
TWEET

sf

a guest Aug 5th, 2015 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct VS_OUT
  2. {
  3.         float4 PosH : SV_POSITION;
  4.         float2 Tex  : TEXCOORD;
  5. };
  6.  
  7. SamplerState Sampler : register(s0);
  8.  
  9. Texture2D DiffuseMap;
  10.  
  11. void main(VS_OUT pin)
  12. {
  13.         float4 Diffuse = DiffuseMap.Sample(Sampler, pin.Tex);
  14.  
  15.         //clip pixels having alpha value < 0.15 (nearly transparent)
  16.         clip(Diffuse.a - 0.15f);
  17.  
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top