Navigate Select ESC Close

So I Tried To Learn Shaders...

2024-12-15 Science & Technology
295.3k
5.6k
444
ThePrimeTime
ThePrimeTime
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Twitch https://twitch.tv/ThePrimeagen Discord https://discord.gg/ThePrimeagen Become Backend Dev: https://boot.dev/prime (plus i make courses for them) This is also the best way to support me is to support yourself becoming a better backend engineer. ### LINKS https://thebookofshaders.com/ By: Patricio Gonzalez Vivo | https://x.com/patriciogv Jen Lowe | https://x.com/_jenlowe_ Great News? Want me to research and create video????: https://www.reddit.com/r/ThePrimeagen Kinesis Advantage 360: https://bit.ly/Prime-Kinesis Get production ready SQLite with Turso: https://turso.tech/deeznuts

Top Comments (10)

@KonradGM 2024-12-15

i'm just waiting for Prime gamedev arc where he writes his own 3d engine in c++

1.1k 45 replies
@KaiDoesMineCraft10 2024-12-15

But Acerola,

991 12 replies
@alst4817 2024-12-15

Prime’s gamedev arc continues. We’ll get Prime Game before GTA VI

488 4 replies
@noktoronin 2024-12-16

Seriously, how I learn how to do shaders: 1. Watch a Blender tutorial for the effect I'm going for. 2. Dissect the Blender source code for how the nodes worked together to create the effect. 3. It's now OUR code. 4. Success. For anyone new to shaders, I recommend starting with Godot's shader language, it's by far the easiest way to get started. There's a lot of high level language features and parameter handling that makes things much easier starting out.

253 9 replies
@theftking 2024-12-15

Shaders continue to break my head every time, and I write them every day.

193 11 replies
@V01t45 2024-12-16

Good advice, when you get distracted, just dont get distracted :D Got it, ADHD solved. If I was able to not get distracted, I would not be watching this video...

43 1 replies
@antonmarini3662 2024-12-15

My friends Patricio and Jen made book of shaders - you should have them on your show. They are awesome!

38
@Glozzom 2024-12-19

1:30 Gaussian blur, as far as I know, is done with a convolution with a gaussian kernel. That means pretty much what prime was saying, you take the kernel, which is a grid of values you apply to the the center and neighboring pixels, to then add them up, and put them in the new image in each location where the center pixel was before. We had to do make a hardware accelerator to do this in a digital design class using an FPGA. This is very likely not the only way to do this, but its pretty much what you think it is, kind of "averaging" each pixel with its neighbors, but with a higher weight for the center pixel, getting smaller as you go to the edges of the kernal/mask.

21
@hogandromgool2062 2024-12-17

GPU has hardware level integration for dealing with floats without need for conversion, stacking or splitting. It's built into the hardware unlike CPUS where it's a software operation in most cases. This is why the float precision actually changes rendering speed unlike CPU bound operations. It's happening in parallel in the hardware rather than being scheduled. GPU cores, they can just pull and push specialized data so damn fast. The 4090 can push 1,000Gb/s through it's compute units in total, when you pair that with the fact that all the native operation for GLSL and Vulkan are directly built into the silicone it makes most GPU single operations process as fast at the speed of electrons in the medium (perceivably instant in copper and aluminium) as they're already complete before the software touches the data. AMD Ryzen 9 7950X3D: Internal data rates up to 512 GB/s and then that's further bottlenecked by the fact the architecture is designed for random compute/broad tasks rather than having actual silicone dedicated to the specific GL calls and matrix math. Some GL calls are on the GPU in silicone so they run extremely fast.

17
@samjay256 2025-01-01

i Love seeing how prime learns something new so many people spamming use shadertoy but it allowed him to test his own variables which really helped me even understand how things really work under the hood.

14

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot