Garry's Mod

Garry's Mod

161 ratings
[Material Proxy] Env_Lightmap
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Model
Addon Tags: Fun, Realism
File Size
Posted
1.266 KB
8 Apr, 2024 @ 11:44am
1 Change Note ( view )

Subscribe to download
[Material Proxy] Env_Lightmap

Description
Tired of your custom/static cubemaps causing your model to glow in the dark? Then this is the addon for you!
This is a resource for modders that is just the 'MwEnvMapTint' proxy from the Modern Warfare SWEPs but made into a standalone addon for convenience so that you don't have to require downloading a whole customizable weapon sysem if you only just want to have a fix for your cubemaps glowing in the dark

This material proxy will brighten or darken a given material's cubemapping to match the surrounding area's lighting so that it becomes less apparent in darker areas, or more apparent in well lit areas

Simply add the following to your material's VMT file:
"Proxies" { "Env_Lightmap" { "min" "0" "max" "1" "envmap" "PATH/TO/YOUR/CUBEMAP" "color" "[1.0 1.0 1.0]" } }

NOTE: For best results, use a cubemap that's compiled with HDR, as non-HDR cubemaps will appear more desaturated

If you don't know how to do that, there's a tutorial on the VDC Wiki for creating HDR skyboxes that can also apply to making HDR cubemaps HERE

Credits:
All credits go to Mushroom Guy, who made the base scripts for the Modern Warfare SWEPs, who also wrote this material proxy

I just made it into a standalone resource for modders (with their permission, of course)

DISCLAIMER:
I know Draconic has a similar material proxy, and while it's got more features and such, i just don't like how there's such a noticeable delay before the cubemap readjusts to the new lighting and how it overrides the initial tint color with the ambient lighting's color, this material proxy takes affect immediately and takes into account the tint color as it adjusts the brightness
16 Comments
boyjedi 1 Dec, 2024 @ 2:08pm 
where is material's VMT file
Hexabyter 30 Nov, 2024 @ 12:16pm 
holy shit niche addon :steamthumbsup::steamthumbsup:
Elite Metropolice 20 Aug, 2024 @ 3:48pm 
Fix Light ilumination on dark with visor Dark
Delta 2 Aug, 2024 @ 11:03pm 
just to let u know sometime chand will just go in the dark state could be a bug at frist i was like w t f nooo what happed then i payedattion lol pritty cool with thelight up part of the modle
Misterlegodude  [author] 27 Jul, 2024 @ 11:06pm 
I just posed the hand from the view model in place of the normal hand
DementedDante384 27 Jul, 2024 @ 10:06pm 
did you use the advanced bonemerge tool on the Master Chief in the picture
INF-Scanner Man 29 Jun, 2024 @ 9:51pm 
Where can I find the file to edit it?
Shezaro 22 May, 2024 @ 3:30pm 
whys it not working?
Vuthakral 11 Apr, 2024 @ 9:54pm 
yeah fair
Misterlegodude  [author] 11 Apr, 2024 @ 9:00pm 
Hello, John Draconic! I have actually read the wiki, but i guess there was something i wasn't understanding or just doing wrong, idk i'll have to look into it again ¯\_(ツ)_/¯

And yeah, i don't condone shitting on similar addons nor the people who use those addons, everyone can use what they want, i just figure i'd offer easy access to an alternative for anyone who might want it