Custom Lit Textures
I wanted to make my own texture light (like lights/light_panel_cool)
I looked in the vmt for Valve's light panel textures but only found the following:
UnlitGeneric
{
$basetexture "Lights/White004"
$surfaceprop glass
$nodecal 1
}
So how do I make my own lit texture?
Thanks!
Vordwann wrote:
That won't make it illuminate other things. There is a tutorial about it that TopHattWaffle at http://www.youtube.com/rocketrascal34 did about creating a custom .rad file to compile it as a lighting texture.
Thanks!
Also, do you know if it's possible to turn on and off a texture light?
YM_Industries wrote:
I don't think func_brushes with glowing textures are included in light compilations.
I put P2's orange light textures on func_brushes in a Lava map to simulate lava glow (displacements wouldn't emit light) and killed them OnMapSpawn to keep the player from seeing them instead of the lava. The glow stayed. I don't believe toggling the brushes will turn the lights off considering killing the brushes didn't kill the light.
YM_Industries wrote:
Also, do you know if it's possible to turn on and off a texture light?
It is possible to add proxies inside a self illuminated light. Look at: https://developer.valvesoftware.com/wik ... al_Proxies for the list of proxies you can use.
Here's an example material I made one time.
"lightmappedGeneric"
{
"$baseTexture" "maps/dm_chickencoop/trim2"
"$surfaceprop" "metal"
"$bumpmap" "maps/dm_chickencoop/trim_normal"
"$selfillum" 1
"$reflectivity" "[0 0 0]"
"Proxies"
{
"Sine"
{
"resultVar" "$selfillumtint"
"sineperiod" 2
"timeoffset" 8
"sinemin" 1
"sinemax" 2
}
}
}