New answers tagged opengl
2
votes
Accepted
What's the difference between Unity3D rendering pipeline and OpenGL rendering pipeline?
The graphics APIs specify pipelines because your input data (vertices, indices, shaderprograms, program constants, textures, output buffers) need to undergo many transforms before becoming an output ...
0
votes
glDrawArrays draws nothing in C. Trying to draw point in openGL(in C), no error but draws nothing
glColor3b specifies colour as 3 signed bytes, but you are passing float values. These float values will be all rounded down to 0, which is black, the same as your clear colour.
If you want to specify ...
0
votes
Why would some assets require a transposed TBN matrix?
Well, that was silly. =) It turned out I was normalizing normals and tangents in my GLSL shader and not in my DX shader. Naturally, that mean the normals I was calculating myself (for the terrain; the ...
1
vote
Accepted
Simulating sprite shadows for a 2D top-down game
I have found a solution where I am using a depth texture for each sprite to simulate 3D shadows similar to the illustration in my question.
I don't know if "Songs of Syx" in particular does ...
Top 50 recent answers are included
Related Tags
opengl × 4174c++ × 962
glsl × 578
shaders × 423
java × 337
textures × 334
lwjgl × 244
3d × 218
rendering × 218
graphics × 170
directx × 146
2d × 137
matrix × 133
mathematics × 132
opengl-es × 128
lighting × 127
vbo × 125
camera × 116
graphics-programming × 108
android × 101
libgdx × 94
sdl × 90
rotation × 89
opengl-es2 × 88
glm × 86