XaskeL

tint shader by xaskel

Aug 6th, 2019
189
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local SHADER_CODE = [[
  2.     float4 color = float4(0,0,0,1); // full black
  3.     technique main // by XaskeL.
  4.     {
  5.         pass P0
  6.         {
  7.             AlphaBlendEnable = TRUE;
  8.             DestBlend = INVSRCALPHA;
  9.             SrcBlend = SRCALPHA;
  10.            
  11.             MaterialAmbient = color;
  12.             MaterialDiffuse = color;
  13.             MaterialEmissive = color;
  14.              
  15.             AmbientMaterialSource = Material;
  16.             DiffuseMaterialSource = Material;
  17.             EmissiveMaterialSource = Material;
  18.            
  19.             ColorOp[0] = SELECTARG1;
  20.             ColorArg1[0] = Diffuse;
  21.            
  22.             CullMode = NONE;
  23.         }
  24.     }
  25. ]]
  26.  
  27. local shader = dxCreateShader(SHADER_CODE)
  28. engineApplyShaderToWorldTexture(shader, '*_steklo', getPedOccupiedVehicle(localPlayer))
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×