Questions tagged as 'glsl'

1
answer

Send two triangles to a vertex shader. OpenGL, C ++, GLSL

I'm learning in college graphics processing with OpenGL in C ++. We are using the GLFW and GLEW libraries. My program consists of creating two triangles in different parts of the window. I created an array with the coordinates of the triangle, a...
asked by 06.05.2018 / 04:01
1
answer

Depth Test is not working correctly in OpenGL

I'm having a problem with Depth Test . I have a scene where it contains three objects. A plan a cube and a cylinder. In my Render I'm doing for when rendering the cube it should disable the Depth Test. With this the cube (in orange) should...
asked by 04.02.2018 / 18:43
1
answer

Opengl Unbind Texture?

I have a list of objects; Home Each object has different amounts of texture; Home When I make glBindTexture of 2 textures (diffuse and specular) for an object, it may happen that the next object can only have 1 (diffuse) texture; Home It...
asked by 30.12.2017 / 20:57