PDA

View Full Version : Possible shader mess up



oliveryas01
11-07-2015, 03:13 PM
So, I'm switching back from DirectX to OpenGl, simply because OpenGL is the bomb! I'm running into this weird disoriented shape being rendered. I have never seen anything like this before. I was simply rendering a cube, using shaders to set the position and color. I changed something in my code and all of a sudden, I got this:

2178

I'll post code if someone would like, but I'm more looking for possible reasons for this to occur, so I can fix it myself, rather than have someone else fix my code for me. I consider that a better way to learn. Thank you all very much!

Cloudy McStrife
11-15-2015, 09:10 AM
Hi.
A few questions:
Do you load the cube out of an .obj file?
Do you use multiple VBO?
Do you use multiple VAO?
Do you use IBO?
What uniforms do you use in you shader?