blob: 072b0542040c965e7d358da45ea354dea05f01f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "Material.h"
inline bool IsTransparentOrCutoutMaterial (Material& material)
{
string tag = material.GetTag("RenderType", false, string());
if (material.GetActualRenderQueue() >= kAlphaTestRenderQueue)
return true;
if (tag == "TreeTransparentCutout" || tag == "GrassBillboard" || tag == "Grass" || tag == "TreeLeaf" || tag == "TranparentCutout" || tag == "Tranparent")
return true;
return false;
}
|