[EFFECT,S] GLSL fragment Shader examples-

Share your Construct 2 effect files

Post » Sun Dec 11, 2016 8:47 pm

Huge collection of GLSL Shaders for download (over 11 thousand, I think)

Instructions:
-------------------------------------------------------
DOWNLOAD THE EXAMPLES:

1, GO TO WEBSITE : https://github.com/yadongx/glsl.
2, DOWNLOAD FILE : glsl-master.zip (204 meg....samples and screenshots).

------------------------------------------------------
DOWNLOAD GLSL SANDBOX VIEWER:
(enables offline viewing)

1, GO TO WEBSITE: https://github.com/mrdoob/glsl-sandbox.
2, DOWNLOAD FILE: glsl-sandbox-master.zip.

---------------------------------------------------------
UNPACK BOTH FILES TO YOUR HARD DRIVE:

I created a new folder named 'GLSL EXAMPLES' with
2 subfolders named.... 'VIEWER' and 'SAMPLES'.
----------------------------------------------------
START THE SANDBOX VIEWER:

Double click 'index.html' (inside the static folder).

The VIEWER should open in your browser, displaying the default
SHADER with the FX CODE rendered above it.

DONT CLOSE THE WIDOW !
------------------------------------------------------
TO VIEW ONE OF THE SAMPLES IN THE VIEWER:

1, Pick one, OPEN with NOTEPAD, select ALL and COPY.
2, GOBACK TO THE OPEN BROSWER WINDOW.
3, PASTE OVER/REPLACE the lines of code WITH WHATS ON YOUR CLIPBOARD.

THE NEW SHADER SHOULD NOW BE RUNNING IN THE BROWSER WINDOW.

99% OF THE SAMPLES I TRIED, RAN OK.
---------------------------------------------------
There is probably a really simple way of doing the above, that I dont know about. :oops:
B
21
S
5
G
8
Posts: 1,215
Reputation: 7,834

Post » Sun Dec 11, 2016 9:44 pm

Thank you for highlighting that tool - it's awesome!!
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,249
Reputation: 46,472

Post » Mon Dec 12, 2016 2:10 am

Isn't there a guide how to port from glsl to C2 effects?
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Mon Dec 12, 2016 7:14 am

Joannesalfa wrote:Isn't there a guide how to port from glsl to C2 effects?

I was thinking this is a guide to do so, right?
B
52
S
26
G
8
Posts: 121
Reputation: 8,526

Post » Mon Dec 12, 2016 7:01 pm

@Joannesalfa

These sites may help - (1st one is best)

http://xorshaders.weebly.com/tutorials/ ... ox-shaders

https://gamedevelopment.tutsplus.com/se ... s--cms-834

http://www.yoyogames.com/blog/14

Also-
The Boken Lenseflare effect I posted a while back, was converted from the file ref : 4537fragment.

Good luck.
B
21
S
5
G
8
Posts: 1,215
Reputation: 7,834

Post » Tue Dec 13, 2016 6:37 am

@chrisbrobs , @Joannesalfa I've started on The Book of Shaders by Patricio Gonzalez Vivo and Jen Lowe free at https://thebookofshaders.com/ . I wonder where @Gigatron got his start with shaders.
B
52
S
26
G
8
Posts: 121
Reputation: 8,526

Post » Tue Dec 13, 2016 11:50 am

@adcornaglia
1- documentation-on-built-in-uniforms_t115900
2- glslsandbox.com
3- shadertoy.com <--- my lab
4- a bit knowledge programming C# ...

Glsl fragment shader mean drawing with mathematics ... exactly like pencil, brush, circle rectangle tools on Paintnet, paint etc ...
Imagine screen filled 60 time per seconds 800*600 pixel *60 ... The gpu doing that .. filling the screen with million pixels.

https://www.scirra.com/tutorials/4900/shader-toy-to-c2
B
66
S
24
G
29
Posts: 827
Reputation: 22,652


Return to Effects

Who is online

Users browsing this forum: No registered users and 1 guest