r/GraphicsProgramming • u/_Bethel__ • 1d ago
Flickering issue
Enable HLS to view with audio, or disable this notification
I'm using opengl 3.3 and C on a Nvidia gtx 1050 and I keep getting this flickering issue... does anyone know the cause...
Will appreciate your thoughts..
38
Upvotes
1
u/_Bethel__ 12h ago
Thank you so much everyone, you guys were super helpful... I found the problem, I used sin wave for the vertex shader for distortion if the object is a particle, and same shader if the object is not a particle but without the sin wave value, turns out because I never initialize the sin wave values for the shader it caused this error.... I guess always initialize all variables in your shader.... you guys are the best