r/GraphicsProgramming • • Dec 20 '24

Question What type of shading language is this?

1 Upvotes

I have this shader code, that works with one program:

#version 300 es
precision mediump float;
uniform sampler2D in_tex;
out vec4 out_color;
in mediump vec2 uvpos;

void main()
{
    vec4 c = get_pixel(uvpos);
    // Invert
    c.r = 1.0 - c.r;
    c.g = 1.0 - c.g;
    c.b = 1.0 - c.b;
    c.r *= c.a;
    c.g *= c.a;
    c.b *= c.a;
    out_color = c;
}

But, what precise language is this? Because I have another shader file with a different sintax than this one that doesn't work with the same program used for the previous shader, but work with another program. Any link to that language?


r/GraphicsProgramming • • May 05 '22

Video Game Engine Programming: Hey everyone, let's finish vertex packing so the geometry is ready for our renderer. Next time we'll do D3D12 programming again. I promise :)

Thumbnail
youtu.be
1 Upvotes

r/GraphicsProgramming • • Feb 02 '17

The smooth sexy curves of a bezier spline

Thumbnail
mortoray.com
1 Upvotes

r/GraphicsProgramming • • Mar 03 '23

Question If modern displays updated sequentially, line by line or tile by tile could we squeeze more out of our graphics cards?

0 Upvotes

Old monitors used a beam or ray to update cathode ray tubes display a pixel at a time. To get more out of limited processing power retro computer developers learned to race the beam to get more out of the limited capabilities of the day.

If modern displays still use or used a similar sequential update process to refresh the displays content could modern CPUs and GPUs with a thousand times the speed (2000 Mhz vs 2 Mhz), do more than they can with a full screen refresh cycle?

Note: Mind you they worked on lower resolutions e.g., 256 x 192 @ 24 hz (or 1 million pixels) compared to modern gaming displays with 2560 x 1440 x @ 240 hz (or 884.7 million pixels).


r/GraphicsProgramming • • Apr 06 '23

Any C# Libraries/Support For 'Fixed' (Float that's actually an Int) Variables?

1 Upvotes

As the title says. I've noticed that integers running round 4 times faster than floats, meaning fixed value types should run just as fast. Are there any libraries or out of the box classes that support this type? I understand I can just use large scale Integers, but it would be nice if there was an efficient library out there for this.


r/GraphicsProgramming • • Jan 22 '22

Video Checkout the roadmap for Blender this year and beyond

Thumbnail
youtu.be
0 Upvotes

r/GraphicsProgramming • • Feb 13 '23

Question Need help choosing Quadro vs Tesla

0 Upvotes

I need a GPU that can do 2 things well

*disclaimer, this wont be a primary GPU, I have an rx550 for my display card already, and my host OS is linux

  1. amazing cuda performance

  2. amazing rendering performance

Tesla cards are great for number 1, but the problem is that modern consumer cards use 'RT Cores" to actually accelerate rendering, making them faster. Its why the 3090 was able to outperform some of Nvidias top of the line teslas in rendering because its Ray Tracing picks up the slack, and because teslas dont have RT cores.

So i need something that can utilize RT accelerated encoding/rendering, but also have great capability for CUDA GPU compute.

So is there a tesla with RT cores, or is there a quadro with as many cuda cores as a tesla?

Any advice would be appreciated


r/GraphicsProgramming • • Oct 19 '26

Question Looking for guidance on evaluating shader cost for procedural texture generation (research project)

0 Upvotes

I’m working on a research project where the goal is to take a real texture and generate a procedural material/shader that approximates it.
The system produces a node‑based procedural graph with tuned parameters, plus an optional fallback texture layer. The output is a GLSL/HLSL/WGSL shader that reconstructs the material.

The motivation is practical:
In multi‑region deployments and cloud gaming backends, moving fewer textures can reduce storage and distribution overhead.
But the trade‑off is shader cost — and that’s the part I’m trying to evaluate properly.

I’m trying to understand how to estimate the cost of a procedural material shader compared to using a fixed texture.
I need a reasonable way to judge when the procedural version becomes “too expensive,” and how people typically model or approximate that cost in real pipelines.

I’d really appreciate insight from graphics programmers who have experience with:
• analyzing or estimating shader cost
• comparing shader‑based materials vs texture‑based materials
• heuristics or rules‑of‑thumb used in production
• pitfalls when evaluating procedural materials

I’ll leave the link to the full proposal in the comments for anyone interested.


r/GraphicsProgramming • • Jul 04 '25

My "Fast Aproximate" Ambient Occlusion technique

0 Upvotes

while messing around with ssao i noticed it was slowing down my engine a lot so i decided to try making my own, after a while i was able to come to this

while its not as accurate as SSAO it seems to be very fast and provides relatively good results heres example (once paired with blur)

im posting this here incase it hopefully helps someone out there, and also to share my experience with screen space ambient occlusion.


r/GraphicsProgramming • • Jan 24 '26

Path Tracing SVGF Denoise Issue

0 Upvotes

I tried to implement SVGF to denoise my path tracing renderer. But it just doesn't work well, there are lots of fireflies and noises, I send my implementation to AI and it says its fine.

Current parameters:

  • SPP: 2

  • Temporal Alpha: 0.9

  • Temporal Clamp: 4

  • Outlier Sigma: 1.2

  • Atours iteration: 4

Are there anything wrong? Any thoughts or advice is appreciated.


r/GraphicsProgramming • • May 23 '26

Question How do you deal with the "knob-turning" aspect of light simulation?

0 Upvotes

i keep getting kind of irritated with certain aspects of programming, in general.

Specifically, a lot of CSS "tricks" basically involve hacking the intended usage of the styling language. And i feel similarly about the sender-receiver relationship in phong shading. I understand the mathematical model *works* for both attenuation, surface colors, artistic flexibility, and carefully calibrating things to resemble a certain object... but i also completely despise this. That i am, quite literally, just turning knobs until the computed color is desirable.

idk if I'm the only one that feels this way.


r/GraphicsProgramming • • Sep 28 '21

How to do asset ripping/ how RenderDoc works

4 Upvotes

I’ve read the “how RenderDoc works” page on their website but I am still unsure of some details and (also) curious what’s in the DLL and how it gets injected? I’m a total noob with asset ripping code but I really want to get into it. I think it would help my understanding of a lot of graphics concepts (and I also think it would be cool to write graphics drivers so I think this would probably help)

To me it essentially seems like you inject the DLL and sort of act as a proxy to the API. So it seems my program would literally get passed the data buffers the target process is sending to the GPU. But then what if the process has already passed the data to the gpu and now it’s just, like, binding a VAO and making a draw call; how do I get the data back then, if it’s on the GPU (or is the VAO a convenience and it’s passed again every time - this seems inefficient especially if you know the data is going to be static so I doubt this is the case)?

I hope this isn’t too dumb so if there are articles or files with documentation I could be pointed to that would help. Also high level explanations would help a ton too. Thanks.


r/GraphicsProgramming • • Jul 16 '26

Ray tracing tech demo

Thumbnail
samfa12.itch.io
0 Upvotes

Hey guys I wanted to test real time ray tracing support from the adreno gpu so made a little tech demo with codex. It runs surprisingly well and the light is fully path traced. I have plans to continue developing this with more rt features.


r/GraphicsProgramming • • Jan 22 '25

Question I am confused

4 Upvotes

Hey guys

I want to become a graphics programmer but I dont know what am I doing

Like I am learning things but I don't know what specific things I should learn that could help me get a job

Can you guys please give me examples of some job roles for a fresher that I atleast can aspire for which can give me some sort of direction

(I'm sorry if the post feels repetitive, but I just can't wrap my head around this issue)


r/GraphicsProgramming • • Jul 17 '16

Why could we make movies with amazing visuals like Ants and finding Nemo in 2000s, but couldn't get close to their graphics in games till now?

0 Upvotes

Title ^

Thanks everyone, all the answers were amazing.


r/GraphicsProgramming • • Dec 13 '24

Video The topic of tone mapping on monitors ; presentation by Angel

Thumbnail
youtube.com
0 Upvotes

r/GraphicsProgramming • • Jan 09 '25

Question Graphic Design Program in BC

0 Upvotes

Hi I was hoping someone could advise me in what programs in BC are industry respected graphic design diploma. I sadly am not in good standing with Student Loans so Uni doesn't really seem like a good option financially. I would be paying out of pocket for the courses and was wondering if there are any (online preferably) diplomas at colleges that are respected in the industry. If anyone could please advise I would be very appreciative


r/GraphicsProgramming • • Nov 16 '22

Source Code Dancing mathematician

Thumbnail
youtu.be
0 Upvotes

r/GraphicsProgramming • • Feb 27 '21

Bitcoin Shader

Thumbnail
shadertoy.com
3 Upvotes

r/GraphicsProgramming • • Feb 08 '23

Video Game Engine Programming: hi everyone, Here's a new video about loading a scene and testing the lighting.

Thumbnail
youtu.be
3 Upvotes

r/GraphicsProgramming • • Feb 13 '23

OpenGL vs Vulkan - That One Game Dev

3 Upvotes

Based on my latest article I wanted to ask which one would you choose over the other for your next project?

289 votes, Feb 16 '23
83 OpenGL
169 Vulkan
37 None (Other)

r/GraphicsProgramming • • Nov 01 '25

Question Thinking of replacing my desktop and laptop with a MacBook Pro 16”

3 Upvotes

Hi everyone, I’m a second-year Computer Science student and I’ve been seriously thinking about moving to a single machine setup.

Right now I use a desktop PC (dual-boot Windows and Arch Linux) for heavier work and gaming, and a Linux laptop (Arch with Hyprland) for university and daily programming. It’s a solid setup, but maintaining two systems and switching between them constantly feels like wasted time and energy.

In my free time I work on C and C++ projects, systems programming, and sometimes embedded development with ESP32 or STM32 boards. I’ve also been learning graphics programming with OpenGL, and at some point I’d like to write my own small game engine from scratch — not just toy examples, but something that pushes me to understand real performance and rendering.

I also produce electronic music, so audio performance and low latency matter to me as well.

I’m considering selling both my desktop and laptop to buy a single MacBook Pro 16” (M3 Pro or M3 Max, 32–48 GB RAM, 1 TB SSD). The goal is to have one machine powerful enough to handle everything I do — coding, graphics, embedded work, open-source contributions, music production — without compromise.

What draws me to macOS is the UNIX foundation, stability, and the fact that I can still work in C, C++, .NET, Python, and use modern dev tools without dealing with constant driver or configuration issues. I’d rather focus on creating than maintaining two environments.

Has anyone here made a similar move — selling their desktop and Linux laptop for a MacBook Pro? Was it worth it long term? Would you say the MacBook Pro 16” can really replace a desktop workstation for someone who wants to code, build software, and also push into graphics and engine development?

Thanks in advance for any honest feedback or personal experiences.


r/GraphicsProgramming • • Mar 06 '26

Question Using Neovim for graphics programming

4 Upvotes

I'm extremely new to graphics programming as a whole and have mostly just been messing around with OpenGL with CLion as of right now.

But Ive been meaning to learn Neovim and get comfortable with it and use all the plugins and configs that I would need. I was just wondering if anyone has been using Neovim for graphics programming and how it has been, any pros and cons, and any key plugins to note?


r/GraphicsProgramming • • Jul 16 '26

Article A bit lost with Vulkan concepts and terminology at first, so I built a hands-on interactive visual guide

3 Upvotes

Honestly still a beginner with Vulkan. The official tutorials are excellent, but I couldn't hold the whole terminology and model in my head from text alone, so I built a set of interactive visualizations to try to make it more down to earth and practical using an analogy with a restaurant kitchen. In fact, this mental model is how i understood it so if anything is wrong or oversimplified I'd really like to hear it to enhance the article. ideally the goal is to make a first overview on this subject before diving into the canonical intros (Khronos docs, vulkan-tutorial.com, howtovulkan.com), not a replacement.I've seen other posts here asking for exactly that kind of first intro, so I'm sharing it in case it helps anyone starting out, and also because I'd like the corrections, or even other people's own ways of visualizing this stuff.

https://fremaconsulting.ch/blog/vulkan