Tag Info

Hot answers tagged

3

I have had this exact problem. http://stackoverflow.com/questions/14713343/projection-theory-implimented-in-glsl First thing I suggjest is getting a book called "3D Math Primer for Graphics and Game Development", which goes into detail on the clip matrix derives the whole formula for both OpenGL and DirectX projections. (There is a slight difference, oddly ...


2

You can try adding: glEnableVertexAttribArray(1); before your call to glVertexAttribPointer. Basically any attribute is disabled by default, so you may have to enable it first. See this. Edit msell comment made me realize that you probably want the circle to be of single color, in that case yes, you need uniforms. Attributes are a property of vertices, ...



Only top voted, non community-wiki answers of a minimum length are eligible