Well I figured it out finally. I had printed out all the shader params of
the material I was using and saw that indeed there was no selfillum. I
realized you must set and unset the selfillum flag to control that option.

Chris

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Christopher
Harris
Sent: Saturday, October 18, 2008 8:10 PM
To: 'Discussion of Half-Life Programming'
Subject: [hlcoders] Material Proxy not finding a known existing variable,
$selfillum

Hey,

 

I am trying to write a proxy that enables and disables $selfillum based on
the game's state. The problem is that the Material Proxy is unable to find
the variable "$selfillum". I can define it 0 in the vmt or 1 and no matter
what it will always say that var does not exist. According to IMaterial.h
the SelfIllum is part of a group of vars that have this comment:

 

// NOTE: Only add flags here that either should be read from

                // .vmts or can be set directly from client code. Other,
internal

                // flags should to into the flag enum in IMaterialInternal.h

 

So I assume that the var is able to be used this way, but I am not sure why
my proxy keeps saying the var was not found.

 

Chris

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to