# Using ChatGPT-4 to write OpenRGB shaders for keyboard and PC lighting

- **Platform:** YouTube (video)
- **Original post:** https://www.youtube.com/watch?v=ydeii59vXcc
- **Posted:** 2023-04-08
- **Length:** 426 s
- **Stats at archive time:** 1318 views, 23 likes, 7 comments
- **Video file:** https://clips.linus.gripe/media/Youtube_ydeii59vXcc.mp4
- **Original caption:** In this video i try to make ChatGPT to give me code to shaders that i can display onto my RGB devices with help of OpenRGB and its Effects Plugin
I used Chat GPT-4 but normal ChatGPT can be used too to acheive something similar, the result was mind really impressive.
My keyboard is a Hyperx Alloy Origins core but most other keyboards from reputable brands can be used.

-----
Link to textfiles:  https://drive.google.com/drive/folders/1_Jhx55_0Xz8a0f8d52hNMFtZws73EBoH?usp=sharing

## Summary
A tutorial/experiment where Linus gets ChatGPT (GPT-4) to write shader code that runs in OpenRGB's Effects Engine plugin, displaying generated RGB effects, including an audio-reactive one, on his HyperX Alloy Origins Core keyboard and PC lighting.

## What happens
- 0:00: A glowing pink/blue keyboard in front of a PC with an MSI GeForce card visible.
- Screen recordings split-screen with webcam-style footage of the keyboard: ChatGPT conversation on one side, OpenRGB Effects Engine and its shader editor on the other.
- Pasting a prepared prompt text file, then a request; ChatGPT outputs code, pasted via "Edit shader" and applied. Results: a flowing abstract colour pattern, then green animated patterns and a keyboard-optimised shader (16 x 6 LED grid) that lights keys but leaves other devices black.
- Later the audio-reactive prompt (pink and blue colours); a music player shows an album cover while audio-reactive effects play; "swirl" version; final frames show the keyboard glowing purple/yellow.

## Spoken content
English. "Can AI make RGB profiles or can it not? Well we can try." He explains shaders are code, so ChatGPT can write them, using a prompt with example code so output works in OpenRGB (text files linked in the description). First requests (e.g. a cup of hot tea) are too complex; abstract ones work. He asks it to optimise for the 16x6 key matrix, then an audio-reactive shader with pink and blue, selecting an audio device (a headset monitor rather than his QuadCast mic), and asks for a swirl. He calls the result "pretty damn cool" and encourages viewers to experiment.

## Audio / music
Voiceover plus the music used to demo audio reactivity; a track's album art appears but I could not identify it.

## Topics & keywords
ChatGPT, GPT-4, OpenRGB, Effects Engine, shaders, GLSL, AI-generated RGB, audio reactive, HyperX Alloy Origins Core, keyboard lighting, QuadCast, PC modding

## Context
English-language tech experiment, uploaded 2023-04-08, 426 s (the Short version is "ChatGPT makes your keyboard look SICKK"). 1,318 views, 23 likes, 7 comments.
