2022 Developer Survey is open! Take survey.

New answers tagged

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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 101
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 ...
user avatar
  • 21

Top 50 recent answers are included