Layer Effect Parameter Values

Get help using Construct 2

Post » Thu Dec 12, 2013 7:09 am

Is there a way to get the value for the WebGL effects parameters?

For example I created a shader with an Intensity value that's on my layer 0, is there a way to do Layer[0].Effect(myeffect).Param(0) and get the current value ?

I could store them manually on the side, but if I don't have to, I'd rather have a cleaner project.

ThanksKaisirak2013-12-12 07:09:40
B
6
S
1
G
1
Posts: 39
Reputation: 1,153

Post » Thu Jan 01, 2015 11:25 am

Sorry for bumping up an old topic, but I'm also searching answer for this question...

Have you found a solution for this problem? Is there any way to get effects parameters current value?
B
67
S
23
G
9
Posts: 166
Reputation: 7,339

Post » Thu Jan 01, 2015 11:30 am

I was also looking into this, but ended up using variables to store the settings.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Thu Jan 01, 2015 12:13 pm

Somebody wrote:I was also looking into this, but ended up using variables to store the settings.

I thought that aswell. It would be so much more convenient to get the parameters straight from where they are and not to store them separately..
So probably I'll have use variables like you do...
B
67
S
23
G
9
Posts: 166
Reputation: 7,339


Return to How do I....?

Who is online

Users browsing this forum: David181, dop2000, namaewayukidesu and 14 guests