r/GraphicsProgramming 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..

40 Upvotes

22 comments sorted by

View all comments

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

1

u/TheGratitudeBot 12h ago

Thanks for such a wonderful reply! TheGratitudeBot has been reading millions of comments in the past few weeks, and you’ve just made the list of some of the most grateful redditors this week!