How to integrate this GLSL to C2?

For developers using the Construct 2 Javascript SDK

Post » Wed Feb 20, 2013 2:29 pm

@Joannesalfa :
you use :
[quote]
vec2 myPos = position;
[/quote]
but you didn't declared "position" anywhere.
B
33
S
9
G
6
Posts: 708
Reputation: 6,704

Post » Wed Feb 20, 2013 6:13 pm

@Pode and @Joannesalfa

cleaned the code and now it works

here is a preview. and the corresponding .capx

and here is the VHS .FX and XML.
Save file as & put them into the effects folder.

I didn't spend much time on describing the parameters.. so maybe you like to add some meaning to it or even improve it.
B
61
S
7
G
2
Posts: 95
Reputation: 4,312

Post » Thu Feb 21, 2013 10:07 am

@oppenheimer

Nice! Thanks, i didn't know it should have vTex. I edited XML for precise example.


I'm going to release this effect to public, i hope you don't mind.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Thu Feb 21, 2013 5:13 pm

@Joannesalfa
no problem m8, was glad to help.
have a look at the javascript-sdk-template. it's pretty useful, because it explains what you have to do when writing (or copy&paste) shaders (or behaviours/plugins).oppenheimer2013-02-21 17:13:45
B
61
S
7
G
2
Posts: 95
Reputation: 4,312

Previous

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests