Team Spartan Cookies & Milk Forums

Full Version: Texture color channels and Starfall
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering if gmod/source allowed to split the textures loaded in into their R G B A channels and if so, is a starfall implementation possible in order to manipulate those channels ?
My main example was for example to take in a texture, separating the alpha channel and overriding another texture's.

This would (I think) allow for great texture manipulation opportunities.
If I'm reading this right, and not going a bit insane, this would be quite useful for emitter based applications too
(27-01-2022, 01:07 PM)Avorius Wrote: [ -> ]If I'm reading this right, and not going a bit insane, this would be quite useful for emitter based applications too

It would be useful for any rendering based code so screens ; emitters ; HUDs
It's not possible to get the individual channel data from a texture, nor to create textures other than by drawing to render targets. There's an open issue in the GMod request tracker for it that's not had any answer for years sadly.
This is kinda sad, could've been a nice thing to have.