r189 - Shader Effects modification

Share your Construct 2 effect files

Post » Sat Nov 22, 2014 3:42 pm

According to the latest beta version:
WebGL shader effects can now use a 'scrollPos' vec2, which is the scroll position (in the middle of the screen) in layout co-ordinates.

This seems to mean that other than the following parameters (samplerBack, destStart, destEnd, seconds, pixelWidth, pixelHeight, layerScale, layerAngle, and viewOrigin) that are already exposed to your shader effects, you now have an additional parameter known as scrollPos.

This should be very useful for developing special shading effects!

Anyone tried it out yet?
=========================================
If you are on Linkedin, join other C2 professionals and network on the Scirra Construct 2 Developer Group at https://www.linkedin.com/groups?home=&gid=6732005
B
47
S
11
G
6
Posts: 193
Reputation: 7,744

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests