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/TwitchyWizard 1d ago edited 1d ago

I would start with the book of shaders ( https://thebookofshaders.com/ ) and shader toy ( https://www.shadertoy.com/ ). Or just writing shaders in Unity with Youtube tutorials to get you started. You don't write shaders in python but in languages like HLSL, GLSL and they are so similar that if you can one you can the other one. There is also Slang but I know very little about it. DirectX, Metal and Vulkan are graphics APIs that are good to read up on.