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:

https://www.shadertoy.com/view/lss3D4

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
B
5
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?
B
5
Posts: 12
Reputation: 374


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Jackriduk and 25 guests