While you're here, please consider supporting GamingOnLinux on:
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- Proton Experimental brings lots of bug fixes, controller support in a few launchers
- RimWorld - Anomaly expansion and big free update out now
- GE-Proton 9-3 and 9-4 released with a new option to help with modded games
- Palworld is getting a major content update this Summer, plus a PvP Arena mode later
- PathBlasters is like a competitive vertical-scrolling Bomberman
- > See more over 30 days here
-
Former Nouveau driver lead joins NVIDIA and sent a mass…
- Fremen -
SCHiM is a unique platformer about jumping between shad…
- M@GOid -
Athenian Rhapsody is one of the wackiest games I've see…
- Cybolic -
Victoria 3: Sphere of Influence delayed, Europa Univers…
- Mountain Man -
Free Stars: Children of Infinity coming to Linux after …
- Purple Library Guy - > See more comments
Latest Forum Posts
- What sorta display and audio setup do you folks got?
- pleasereadthemanual - Weekend Players' Club 4/12/2024
- Pengling - The Evercade Outpost!
- StoneColdSpider - Deus Ex GOTY Weird Resolution Issue on Steam But Not GOG…
- Vortex_Acherontic - Colin McRae Rally 3 at 22 years young looking great!
- Pengling - See more posts
View PC info
#version 450 core
out vec4 color;
void main()
{
color = vec4(abs(gl_FragCoord.x), abs(gl_FragCoord.y), abs(gl_FragCoord.z), 0.0);
}
I'm expecting every pixel drawn to be a different color but instead I'm getting a solid yellow color like so:
View cookie preferences.
Accept & Show Accept All & Don't show this again Direct Link
What am I doing wrong? (opengl 4.5 core btw if you didn't notice)
View PC info
View PC info
Disclaimer: It's been long a while since I've tampered with shaders, so I could be entirely wrong ;)
View PC info
View PC info
View cookie preferences.
Accept & Show Accept All & Don't show this again Direct Link
(screen tearing lol)
Thanks everyone
glBindFragDataLocation(shaderProgram, 0, "color");
Also you want your alpha to be at full value, so 1.0, not 0.0. And your colors will be solid, because gl_FragCoord values are way above 1.0, and 1.0 is full value. You can try dividing them by your screen size.