I am newbie in Computer Graphics. I was tasked to draw shape without shaders. But as I understand from internet SMOTHING and using LIGHTS should be used to draw beautiful shape. But I could not use them since I could not render my normals. In short, I have 3D vertices, indices, normals. I am using Vertex buffer Object to render vertices and indices. So my code is:
glGenBuffers(3, vertexObjectBuffer);
glBindBuffer(GL_ARRAY_BUFFER, vertexObjectBuffer[0]);
glBufferData(GL_ARRAY_BUFFER, sizeof(float) * numVertex * 3 , vertex, GL_STATIC_DRAW);
glEnableVertexAttribArray(0);
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, 0);
//glGenBuffers(1, &vertexObjectBuffer[1]);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vertexObjectBuffer[1]);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(float) * numIndicies * 3 , indices, GL_STATIC_DRAW);
The question is how to send normals if I use Vertex buffer Object but without shaders?