09-25-2024, 12:00 PM
I used this:
and I added normals for each vertex:
but this shadow showed up in some parts of the world, and it changes as I move
Code: (Select All)
_glTranslatef 0, 0, -0.25
_glRotatef -Player_Angle.Y, 1, 0, 0
_glRotatef Player_Angle.X, 0, 1, 0
_glTranslatef -Player_Position.X, -Player_Position.Y, -Player_Position.Z
and then thisCode: (Select All)
_glMatrixMode _GL_PROJECTION
_glLoadIdentity
_gluPerspective FOV, _Width / _Height, 0.1, Max(ChunkHeight, RenderDistance * 16)
and I added normals for each vertex:
but this shadow showed up in some parts of the world, and it changes as I move

