|
From: Frederic B. <fre...@fr...> - 2010-03-07 17:37:44
|
Hi Tim,
is there a way to have the value of an uniform updated every frame by
the value of a live property ?
I used :
<parameters>
<sun-angle><use>/sim/time/sun-angle-rad</use></sun-angle>
</parameters>
and then, in pass
<uniform>
<name>sun_angle</name>
<type>float</type>
<value><use>sun-angle</use></value>
</uniform>
According to README.effect, the value should dynamically change but my
shader variable stay at 0.0.
The readme also says [NOT IMPLEMENTED YET], but it is unclear to me what
in not implemented : the copy of a value from the global property tree
to a uniform, or the copy from a local property, or both ?
Regards,
-Fred
|