You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my testing it seems the rainbow texture occurs when the map has no default/fallback cubemaps to use.
When compiling a map, VBSP will automatically patch materials that use env_cubemap, and replace $envmap to point to the appropriate VTF file, e.g. "$envmap" "maps/map_name/c-123_456_64". From my testing it seems these files are packed into the BSP when compiling the map, however they're left as empty black textures, likely "placeholder" cubemaps until the mapper runs buildcubemaps into console, which will then rewrite these placeholder cubemaps to contain actual proper textures.
I think if these coordinate VTF files are missing from the BSP file entirely, then it may or may not fallback to using materials/maps/map_name/cubemapdefault.vtf (might have to double-check this), and if that file isn't present, then it will fallback to weird behavior, such as rainbow colors under certain circumstances like using the flashlight.
The easiest way to fix this issue is to simply recompile the map, and ensure those VTF files are present under materials/maps/map_name/ using a tool like VIDE or GCFscape.
Edit: Upon further testing, it seems cubemapdefault.vtf is irrelevant when it comes to these rainbow textures appearing--the absence of the materials/maps/map_name/c-123_456_64 texture(s) is enough.
Details
Some maps for me have rainbowy reflections, im not sure why. Doesnt really seem to trigger unless i toggle the flashlight.
Flashlight on:
Flashlight off:
With a sandbox lamp spawned the behaviour can no longer be toggled:
Without ever having the flashlight on or a lamp spawned it doesnt happen:
Reproducability
Done with
-noaddons -noworkshop
and sandbox aswell.Arch Linux, 64-Bit branch (AMD 7900XTX): 100%
Windows 10, 64-Bit branch (GTX 1070): 0% (Console errors do show)
Steps to reproduce
Run a Linux installation of gmod
Load this map and toggle the flashlight https://steamcommunity.com/sharedfiles/filedetails/?id=2186368179
The text was updated successfully, but these errors were encountered: