Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. if (Visual::Asus)
  2. {
  3. if (strstr(pMaterial->GetTextureGroupName(), TEXTURE_GROUP_WORLD))
  4. {
  5. pMaterial->AlphaModulate(0.45f);
  6. pMaterial->ColorModulate(0.5f, 0.5f, 0.5f);
  7. pMaterial->SetMaterialVarFlag(MaterialVarFlags_t::MATERIAL_VAR_TRANSLUCENT, true);
  8. }
  9. }
  10. else
  11. {
  12. if (strstr(pMaterial->GetTextureGroupName(), TEXTURE_GROUP_WORLD))
  13. {
  14. pMaterial->SetMaterialVarFlag(MaterialVarFlags_t::MATERIAL_VAR_TRANSLUCENT, false);
  15. pMaterial->AlphaModulate(1.0f);
  16. pMaterial->ColorModulate(1.0f, 1.0f, 1.0f);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement