Color a Greyscale image with WebGL?

Get help using Construct 2

Post » Wed Aug 28, 2013 8:37 pm

Is it possible to use a WebGL, or any other effect, to color a Grayscale image inside Construct on runtime?
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Wed Aug 28, 2013 9:15 pm

Yes, try using the Tint shader.
Scirra Founder
B
387
S
229
G
87
Posts: 24,245
Reputation: 192,160

Post » Wed Aug 28, 2013 10:41 pm

Found it, thank you!
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Wed Aug 28, 2013 11:43 pm

I tried to make a smooth coloring transition

Every Tick
Set LayerEffect(Tint) Paramater 0 to X+1

But it only sets it to X+1 once, when the layout starts, rather than increasing X by 1 every tick. Is that intended?
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Thu Aug 29, 2013 12:16 pm

If X does not change, then neither will the parameter.
Scirra Founder
B
387
S
229
G
87
Posts: 24,245
Reputation: 192,160


Return to How do I....?

Who is online

Users browsing this forum: timoteomorelli and 1 guest