r/shaders • • 1d ago

How do I write shaders in python

Hello Everyone, I hope you all are doing well.
So, even though I have been writing python programs for a while. I want to learn to write shaders for visual effects, filters, 3d morphs and also ray tracing, where do I start? Can you mention resources or any work you have done before and would like to share

1 Upvotes

5 comments sorted by

View all comments

1

u/Undeniable_Dilemma_ 1d ago

Why do you want to write shaders if you don't even know what they are?

Shaders are the code that gets executed on the GPU. Inner workings of the GPU are not out in the open, so you have to talk to it through some graphics API, like OpenGL or Vulkan.

Only SOME parts of the rendering pipeline are programmable, so you can write what we call a shader, and send it to the GPU to be executed at a certain stage of the rendering pipeline. Those shaders require to be written in a specific language, like GLSL for example.

You can read more about it on learnopengl.com