2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

rename castSunShadow flag back to onlyCastShadow

This commit is contained in:
LJW-Dev
2026-04-08 21:05:43 +08:00
committed by Jan Laupetin
parent 9e083f1ac2
commit a5d2420698
+70 -17
View File
@@ -52,7 +52,7 @@ namespace BSPFlags
SURF_TYPE_ORIGIN, SURF_TYPE_ORIGIN,
SURF_TYPE_SKY, SURF_TYPE_SKY,
SURF_TYPE_NOCASTSHADOW, SURF_TYPE_NOCASTSHADOW,
SURF_TYPE_CASTSUNSHADOW, SURF_TYPE_ONLYCASTSHADOW,
SURF_TYPE_PHYSICSGEOM, SURF_TYPE_PHYSICSGEOM,
SURF_TYPE_LIGHTPORTAL, SURF_TYPE_LIGHTPORTAL,
SURF_TYPE_CAULK, SURF_TYPE_CAULK,
@@ -129,7 +129,7 @@ namespace BSPFlags
{0, 0 }, // origin {0, 0 }, // origin
{4, 0x800 }, // sky {4, 0x800 }, // sky
{0x40000, 0 }, // noCastShadow {0x40000, 0 }, // noCastShadow
{0x80000, 0 }, // castSunShadow {0x80000, 0 }, // onlyCastShadow
{0, 0 }, // physicsGeom {0, 0 }, // physicsGeom
{0, 0 }, // lightPortal {0, 0 }, // lightPortal
{0x1000, 0 }, // caulk {0x1000, 0 }, // caulk
@@ -175,7 +175,7 @@ namespace BSPFlags
SURF_TYPE_CANSHOOTCLIP, SURF_TYPE_CANSHOOTCLIP,
SURF_TYPE_SKY, SURF_TYPE_SKY,
SURF_TYPE_NOCASTSHADOW, SURF_TYPE_NOCASTSHADOW,
SURF_TYPE_CASTSUNSHADOW, SURF_TYPE_ONLYCASTSHADOW,
SURF_TYPE_CAULK, SURF_TYPE_CAULK,
SURF_TYPE_AREALIGHT, SURF_TYPE_AREALIGHT,
SURF_TYPE_SLICK, SURF_TYPE_SLICK,
@@ -193,18 +193,71 @@ namespace BSPFlags
SURF_TYPE_NODLIGHT, SURF_TYPE_NODLIGHT,
}; };
constexpr const char* surfaceTypeToNameMap[SURF_TYPE_COUNT] = {"bark", "brick", "carpet", "cloth", "concrete", constexpr const char* surfaceTypeToNameMap[SURF_TYPE_COUNT] = {"bark",
"dirt", "flesh", "foliage", "glass", "grass", "brick",
"gravel", "ice", "metal", "mud", "paper", "carpet",
"plaster", "rock", "sand", "snow", "water", "cloth",
"wood", "asphalt", "ceramic", "plastic", "rubber", "concrete",
"cushion", "fruit", "paintedmetal", "player", "tallgrass", "dirt",
"riotshield", "opaqueglass", "clipmissile", "ai_nosight", "clipshot", "flesh",
"playerclip", "monsterclip", "vehicleclip", "itemclip", "nodrop", "foliage",
"nonsolid", "detail", "structural", "portal", "canshootclip", "glass",
"origin", "sky", "nocastshadow", "castshadow", "physicsgeom", "grass",
"lightportal", "caulk", "arealight", "slick", "noimpact", "gravel",
"nomarks", "nopenetrate", "ladder", "nodamage", "mantleon", "ice",
"mantleover", "mount", "nosteps", "nodraw", "noreceivedynamicshadow", "metal",
"nodlight", "none"}; "mud",
"paper",
"plaster",
"rock",
"sand",
"snow",
"water",
"wood",
"asphalt",
"ceramic",
"plastic",
"rubber",
"cushion",
"fruit",
"paintedmetal",
"player",
"tallgrass",
"riotshield",
"opaqueglass",
"clipmissile",
"ai_nosight",
"clipshot",
"playerclip",
"monsterclip",
"vehicleclip",
"itemclip",
"nodrop",
"nonsolid",
"detail",
"structural",
"portal",
"canshootclip",
"origin",
"sky",
"nocastshadow",
"onlyCastShadow",
"physicsgeom",
"lightportal",
"caulk",
"arealight",
"slick",
"noimpact",
"nomarks",
"nopenetrate",
"ladder",
"nodamage",
"mantleon",
"mantleover",
"mount",
"nosteps",
"nodraw",
"noreceivedynamicshadow",
"nodlight",
"none"};
} // namespace BSPFlags } // namespace BSPFlags