Displacement Distortion

Get help using Construct 2

Post » Mon Sep 16, 2013 10:10 am

I would like to use a displacement shader from that website but I'm not getting the right declarations and data types for Construct. I looked at the other distortion shaders but I'm messing up something:


varying mediump vec2 vTex;
uniform mediump float resX;
uniform mediump float resY;

void main(void)
     vec2 p = gl_FragCoord.xy / (resX, resY);
     gl_FragColor = texture2D(samplerFront, p+(texture2D(samplerFront, p).rb-vec2(.5))*.1);

Thank you
Posts: 12
Reputation: 374

Post » Tue Sep 17, 2013 11:08 pm

Since I'm not allowed to post in the Plugin forum yet, nobody around with some WebGL knowledge?
Posts: 12
Reputation: 374

Return to How do I....?

Who is online

Users browsing this forum: Kennedy12345 and 4 guests