Character is rendering in-game

This commit is contained in:
2021-08-22 23:30:53 -07:00
parent fabb35b7cf
commit 87e7f599a6
20 changed files with 284 additions and 161 deletions

View File

@ -28,6 +28,8 @@ void skywallInit(primitive_t *primitive) {
r = p * MATH_PI * 2.0f;// Convert % to radians
}
r += mathDeg2Rad(90);
// Determine the X/Z for the given radian
x = SKYWALL_SIZE * (float)cos(r);
z = SKYWALL_SIZE * (float)sin(r);

View File

@ -12,6 +12,7 @@ void renderInit() {
glEnable(GL_BLEND);
glEnable(GL_TEXTURE_2D);
glEnable(GL_DEPTH_TEST);
glEnable(GL_BLEND);
// Setup the alpha blend function.
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);