Garry's Mod

Garry's Mod

379 ratings
[STool] Lightwarper
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Movie, Scenic
File Size
Posted
376.211 KB
Jun 15, 2023 @ 3:20pm
1 Change Note ( view )

Subscribe to download
[STool] Lightwarper

Description
Adds a new tool that will apply lightwarp material for any model which has $phong and $bumpmap on

$Lightwarptexture referency by valve: https://developer.valvesoftware.com/wiki/$lightwarptexture
Lightwarp textures taken from: https://steamcommunity.yuanyoumao.com/workshop/filedetails/?id=903389694

How to add your own color sets:

Create a Lua file in garrysmod/lua/autorun/client/
You can call it whatever you want, preferiblely "custom_lightwarps.lua", the .lua part it's important, since it will be a custom script

Then inside this file you have to write

list.Add( "TextureLightwarps", "path/to/your/file/without/extension" ) //Those are some default examples, materials are at materials/models/lightwarp/* list.Add( "TextureLightwarps", "models/lightwarp/twarphigh" ) list.Add( "TextureLightwarps", "models/lightwarp/twarplow" ) list.Add( "TextureLightwarps", "models/lightwarp/spectrum" ) list.Add( "TextureLightwarps", "models/lightwarp/twarpmed" ) list.Add( "TextureLightwarps", "models/lightwarp/wrapped" )


Credits: Me
33 Comments
Jodi Jun 7, 2024 @ 4:10am 
Bug: You can't save lightwarps in dupes or saves
Y!2!K!★ May 7, 2024 @ 8:15pm 
doesnt work for me
NextKurome76TheSoldier Sep 17, 2023 @ 10:48am 
[ERROR] lua/weapons/gmod_tool/stools/lightwrapper.lua:83: attempt to index field '$basetexture' (a nil value)
1. func - lua/weapons/gmod_tool/stools/lightwrapper.lua:83
2. unknown - lua/includes/extensions/net.lua:38
th Jul 9, 2023 @ 5:21pm 
cool:missing:
RaccoonFoot Jul 7, 2023 @ 4:09pm 
I can attest to it clashing with the Submaterial tool. After using Submaterial, any new lightwarps applied end up looking weird. Also, this tool doesn't seem to work on eye materials.
NextKurome76TheSoldier Jul 3, 2023 @ 11:33am 
it cannot handle textures with transparency well and doesn't work with submaterial
ramendelsohn Jun 24, 2023 @ 9:30pm 
pls make it compatible with dupes :steamhappy:
Peter Lemoncello Jun 24, 2023 @ 6:35pm 
okay i added the custom_lightwarps.lua in the autorun file so now what?
specterusp Jun 23, 2023 @ 3:52pm 
use the black and white one for suda51 light warp generator
Cj ROCKS Jun 22, 2023 @ 3:19pm 
It ignores lightwrap, when you try to duplicate it.