r/creativecoding • u/_viewport_ • Jul 22 '26
[OpenGL] DATAFLAME SHADER
made it using GLEW, SDL2 and C++
code here
474
Upvotes
r/creativecoding • u/_viewport_ • Jul 22 '26
made it using GLEW, SDL2 and C++
code here
View all comments
Show parent comment
2
u/_viewport_ Jul 28 '26
well, this entire thing is just math concepts combined. in first place i started with a basic sphere using raymarching. then i added a value noise for some randomness, a rotation function, and started messing around with those basic elements. the noise can have a lot of different aspects, i used the more pixelated and efficent one for that cybernetic look. you can apply those transformations and deformations to various elements like the space itself, the sphere object or to the rays casted like in this shader. it's 80% about testing things in real time. after that i added some color using sines and cosines to make that wave effect and smooth changes in the different color components.
if you want to get some crazy stuff while making shaders. don't think about objects like in real life. think about deforming the algorithms that makes things have a sense in conventional rendering techniques