|
|
|
@ -156,7 +156,11 @@ int process_faces(const world_t* world, const std::vector<ps1bsp_texture_t>& tex |
|
|
|
// Draw water as fullbright transparent surfaces
|
|
|
|
if (miptex->name[0] == '*') |
|
|
|
{ |
|
|
|
outFace->flags |= SURF_DRAWTURB | SURF_DRAWWATER; |
|
|
|
// Detect special liquid types that should not be transparent
|
|
|
|
if (strncmp(miptex->name, "*lava", 5) && strncmp(miptex->name, "*slime", 6) && strncmp(miptex->name, "*tele", 5)) |
|
|
|
outFace->flags |= SURF_DRAWWATER; |
|
|
|
|
|
|
|
outFace->flags |= SURF_DRAWLIQUID; |
|
|
|
} |
|
|
|
|
|
|
|
auto polygons = tesselator.tesselateFace(face); |
|
|
|
|