Skip to content Skip to sidebar Skip to footer
Showing posts with the label Shader

Using Glvertexattribpointer And Gldrawelements To Draw From A Packed Vertex Buffer

I have a packed vertex buffer containing postion coordinates aswell as color values for a vertex in… Read more Using Glvertexattribpointer And Gldrawelements To Draw From A Packed Vertex Buffer

Directional Lighting Is Not Constant In Opengl Es 2.0/3.0

Problem: The direction of the directional light changes when the position of the object changes. I … Read more Directional Lighting Is Not Constant In Opengl Es 2.0/3.0

Diffuse Lighting For A Moving Object

When calculating diffuse lighting for a moving object, I have to move the luminous source along wit… Read more Diffuse Lighting For A Moving Object

Glcreateshader And Glcreateprogram Fail On Android

I'm having a very difficult problem creating a shader program on android. when I call glCreateS… Read more Glcreateshader And Glcreateprogram Fail On Android