Garry's Mod

Garry's Mod

80 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
Apr 8 @ 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
9 Comments
Shezaro May 22 @ 3:30pm 
whys it not working?
Vuthakral Apr 11 @ 9:54pm 
yeah fair
Misterlegodude  [author] Apr 11 @ 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
Vuthakral Apr 10 @ 8:39pm 
Reading the disclaimer, I advise you check Draconic's wiki on how the proxy works.

@3rd commenter -- I literally have this guy blocked because he's just constantly making stuff up about myself & my work and was regularly posting bait on my addons.
Bread Apr 9 @ 6:02pm 
HOLY SMOKES 😩😩
VoidLeak Apr 9 @ 3:24pm 
OH MY GOD THANK YOU!
{TLFA} Notorious Griefer Apr 9 @ 9:24am 
draconic is for LOSERS use this addon instead
The_Real_Bot Apr 9 @ 5:14am 
yeah
mike edger the IV Apr 9 @ 2:53am 
great mod :steamthumbsup: