Page 2 of 2
Re: Even the most basic custom unit shaders are very expensive
Posted: 22 Mar 2016, 17:32
by Beherith
Where should I specify the simframe location in my shader definitions?
Re: Even the most basic custom unit shaders are very expensive
Posted: 22 Mar 2016, 17:53
by hokomoko
You want to add it in the framework here:
http://imolarpg.dyndns.org/trac/balates ... s.lua#L181
and here:
http://imolarpg.dyndns.org/trac/balates ... s.lua#L200
and it will be automatically loaded if your shader contains the uniform with that name.
Re: Even the most basic custom unit shaders are very expensive
Posted: 22 Mar 2016, 18:27
by hokomoko
attached a sample of how to use simFrame on wobbling trees,
sorry for the whitespace changes
