ah well I think I found the best way now. It is more proper to use a Texture
proxy to handle this then you can tell in the vmt what the $resultVar is and
it will change that var based on your proxy. I was noticing this used
heavily in tf2 textures to do many things gameplay related such as blending
in a detail burn texture layer based on a burn proxy, etc.

Chris
----- Original Message -----
From: "Matt Stafford" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, August 26, 2007 7:31 PM
Subject: Re: [hlcoders] Changing shader variable based on view exposure?


--
[ Picked text/plain from multipart/alternative ]
This is the only way I know of also, and honestly its a terrible system to
try and make stuff work dynamically.

On 8/27/07, Christopher Harris <[EMAIL PROTECTED]> wrote:

I've often wondered about things such as this. Passing variables from the
client to the shader dll so you can have things be dynamic. The only way
I
have been able to do it is have a parameter in the vmt (that I don't
write
in the vmt) that when loading shader for post process I get that vmt
param
and set it to my variables.

Chris
----- Original Message -----
From: "Benjamin Davison" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, August 26, 2007 5:16 PM
Subject: Re: [hlcoders] Changing shader variable based on view exposure?


> --
> [ Picked text/plain from multipart/alternative ]
> Possibly something in the HDR solution? Maybe try looking for the
tonemap
> or
> the histogram.
>
> On 8/26/07, Tobias Kammersgaard <[EMAIL PROTECTED]> wrote:
>>
>> --
>> [ Picked text/plain from multipart/alternative ]
>> Hey!
>>
>> I've got the SDK shaders working and everything (yay!), and I'm
currently
>> trying to make my new postprocessing shader
>> more dynamic.
>> Let's say I want to change shader variables based on the exposure to
the
>> players view, anyone that can think
>> of something SDK that either does that (detects the exposure), or
>> could
>> be
>> used as a base for this?
>>
>> Thanks!
>>
>> /ProZak
>> --
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>
>
> --
> - Benjamin Davison
> --
>
> _______________________________________________
> 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




--
Matt Stafford (Wraiyth)
http://www.wraiyth.com
NightFall HL2 Mod - http://www.nightfallmod.com
--

_______________________________________________
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