Jump to content

Model transparency and self illumination doable? (source)


Recommended Posts

Posted

For adding transparency i use "Alphatest" 1 and it works flawlessly on my model, however I would like to add self illumination in some parts of the texture as well.

The problem is that "alphatest" and "$selfillum" are both using the basetextures Alphachannel.

How can I work around this problem? Is it even doable?

Thanks in advance =).

Posted

an envmapmask could help, with a bit of saturation. Look at the lost coast fresco materials for an example of valve's shaders.

I dont understand how i could replace selfillum with an envmapmask? The results should be far from simliar..?

you can make a separate map for it afaik

In that case, what should I write instead of $selfillum "1" ?

I cant find any info about it in the source sdk wiki.

Posted

I've been trying this before if I remember right. Sadly I couldn't find a way to do it then.

Somehow for this to work you must obviously be able to specify either the transperancy mask or the illumination mask as in the vmt as a separate texture. So far I don't think that's possible but I can be wrong.

If you do find a way however please post what you did :)

GL

  • Mapcore Supporters

    aphexjh       Badroenis       celery⭐      EGO DEATH ⭐      Freaky_Banana      FMPONE ⭐      Harry Godden      JimWood ⭐      JSadones      poLemin      Vaya

    Funds go towards hosting and license costs, Discord server boosts, and more. If you'd like to donate, check out our Patreon announcement.

×
×
  • Create New...