Because I don't feel like handing my money and data over to OpenAI, I've been trying to use more open-weight AI models for coding (Code Llama, Star Coder, etc). Unfortunately, none of them have been very good at OpenGL or shaders... until now. Just a couple of months old, Qwen2.5-Coder does great with OpenGL+GLSL, and can go deep into implementation in a variety of different languages (even outperforms GPT-4 in most benchmarks).
I thought this would be of interest to the folks here, although the guys at LocalLLaMA have been lauding it for months. I can see it being extremely helpful for learning OpenGL, but also for working up concepts and boilerplate.
My setup is a MacBook Pro M1 Max w/32GB memory, running LM Studio and Qwen2.5-Coder-32B-Instruct-4bit (MLX). It uses about 20GB of memory w/ 4096 context.
With this, I can get about 11t/s generation speed - not as fast as the commercial tools, but definitely usable (would be better on a newer laptop). I've been able to have conversations about OpenGL software design/tradeoffs, and the model responds in natural language with code examples in both C++ and GLSL. The system prompt can be something as simple as "You are an AI assistant that specializes in OpenGL ES 3.0 shader programming with GLSL.", but can obviously be expanded with your project specifics.
Anyway, I think it's worth checking out - 100% free, and your data never goes anywhere. Share and enjoy!