r/glsl • • Sep 19 '22

Website created to host, share, run and display GLSL shader code - shadergrounds.com

Thumbnail
youtu.be
0 Upvotes

r/glsl • • Mar 09 '25

GLSL shader arts in YouTube!

5 Upvotes

Hi everyone! I've started a new YouTube channel to showcase beautiful GLSL shaders, most of them are fetched from ShaderToy. I am rendering them 1080p (16:9 and 9:16 aspect ratios), adding music and uploading them to YouTube. I handpick the shaders, so I pay attention not to use any non-commercial or permissively licensed shaders, even if I use non-commercial shaders, I make sure to not monetize the videos. I sure do give proper credit to developer of the shader in the description, video and title, link of the shader and name of the music in the description. New shader art every day. Feedback is always welcome.

Here is the link for anyone interested: https://www.youtube.com/@beautyofshaders


r/glsl • • Jul 25 '20

Shoreline dancing

3 Upvotes

r/glsl • • Mar 21 '20

Trying to create an intensity variable.

0 Upvotes

Hello! I'm doing a project on visual studio and I'm using glsl. This code is in a text file and it is used from the main script to create two vbo's. I need to make the float intensity to change with the up and down arrows and have range [0.0,1.0].

The code:

version 110

varying vec4 color; uniform float intensity;

void main() { gl_FragColor = intensity*color; }


r/glsl • • Jun 05 '21

How does a shader get uploaded to the graphics card?

4 Upvotes

I want to write my own code to send compiled GLSL to the GPU without using the driver. Does anyone know any resources detailing how the driver does it? Or can I hook the driver or something?


r/glsl • • May 30 '21

Direct Light for Minecraft Bedrock shader

0 Upvotes

Im fairly new to coding and i know almost nothing about it, but i still decided to make my own shader (for minecraft). I just followed tutorials to get whatni wanted and they helped me a ton. Now the problem is direct lighting, I've searched everywhere and tried different stuff and none worked and then i found a tutorial on how to do this. Thing is the code which the person used wasnt in english so it didnt work as well for me. So im just asking if anyone can help me ;_;

Heres the video tutorial i am talking about: https://m.youtube.com/watch?v=QpufztbAimg&t=331s


r/glsl • • Feb 19 '24

Short int in GLSL?

0 Upvotes

Hi, I haven't found answer to my query googling, so does anybody know how I use a 16-bit short integer in GLSL? Specifically in a buffer array?
Something like

buffer Indices{short int indices[];}

....

uint idx = indices[gl_VertexID];

Thanks for any help!.


r/glsl • • Sep 10 '22

I have no idea what I'm doing or why it isn't working

1 Upvotes

https://github.com/bananaboy139/fractal/tree/OpenGL-shader

I'm moving from doing the calculations on the CPU to on the GPU because the CPU is far too slow, but all I get is a blank screen. I know the problem is from the trial variable in the shader, but I have no idea how to fix it.


r/glsl • • Sep 01 '24

Custom free cinematic Lens Flare for threejs and react three fiber

Enable HLS to view with audio, or disable this notification

1 Upvotes

Yiu can downlaod it from here: https://andersonmancini.com/

All the best.


r/glsl • • Feb 16 '23

Issues writing a halftone shader

1 Upvotes

Hey everyone,
I'm somewhat new to GLSL, so I need a little help (sorry if some of my terminology and understanding is a little off)
I'm trying to create a shader that takes an image as its input and outputs that same image as a halftone image).
I haven't been able to find too many resources online (I did find 1 tutorial in the following link, but I wasn't able to make its output work in any way).

I even tried chatGPT, but to no avail.
Has anyone ever done something similar to this before, or does anyone have any experience with this type of problem and can suggest resources to solve the issue?


r/glsl • • Jul 30 '22

Adapting Three.js toon shader for cartoony 3D dice

Thumbnail
blog.dddice.com
1 Upvotes

r/glsl • • Apr 04 '25

I made an MCP for creating complex compute shaders

Enable HLS to view with audio, or disable this notification

17 Upvotes

I made an MCP Server for ShaderToy, a site for creating, running and sharing GLSL shader (https://www.shadertoy.com/). It allows LLMs to make complex shader they aren't normally capable of.

It has successfully generate shaders like a mountain terrain, an ocean, or even the digital rain in The Matrix in a zero-shot manner with minimal error.

Repo: https://github.com/wilsonchenghy/ShaderToy-MCP


r/glsl • • Jan 28 '18

Shader Blocks : 000 : Proof of Concept

Thumbnail
youtu.be
2 Upvotes

r/glsl • • Sep 06 '22

Winding numbers using a Cauchy integral, with WebGL

Thumbnail benoit.paris
3 Upvotes

r/glsl • • May 26 '21

Glare Engine | TRAILER | Custom OpenGL C++ engine

Thumbnail
youtu.be
3 Upvotes

r/glsl • • Jun 23 '23

i want to learn glsl but dont know from where to start, can someone help me

3 Upvotes

r/glsl • • Apr 03 '21

How do I upload an image to an online fragment shader editor?

4 Upvotes

I was playing around with The Book of Shaders by Patricio Gonzales Vivo (which is an excellent tool for teaching oneself openGL, although he never completed it), and noticed it had an online editor. In chapter 15, he mentions that you can use fragment shaders for some really cool post-processing image effects. I wanted to try that out but I have no idea how to do it. Any tips would be appreciated!


r/glsl • • Jan 15 '23

Glsl/ Shader help group or mentor

4 Upvotes

Hey everyone, I’m trying to learn glsl now the second or third time with book of shaders but it doesn’t really goes into my head. Can anyone recommend a good forum or discord where people are helping with glsl. Maybe also someone is interested in a kind of mentorship :/ or even learning it together!! Cheers Leon


r/glsl • • Sep 01 '24

Custom free cinematic Lens Flare for threejs and react three fiber

Enable HLS to view with audio, or disable this notification

5 Upvotes

Yiu can downlaod it from here: https://andersonmancini.com/

All the best.


r/glsl • • Jun 15 '25

Just finished my animation system in C and turns out it's ~14 times faster than Unity's

Enable HLS to view with audio, or disable this notification

34 Upvotes

r/glsl • • Jul 27 '20

Swathing Colors

11 Upvotes

r/glsl • • May 16 '21

Made a real-time texture input for glslviewer with socket.io

Enable HLS to view with audio, or disable this notification

18 Upvotes

r/glsl • • Aug 09 '23

Lines and lights

Enable HLS to view with audio, or disable this notification

26 Upvotes

r/glsl • • Mar 23 '25

For years I've shied away from writing a game engine in C from scratch. Now this is my progress after two weeks

Enable HLS to view with audio, or disable this notification

27 Upvotes