Reworking everything about shaders.

This commit is contained in:
2021-12-07 09:06:28 -08:00
parent 17b066e676
commit 3d8b67cca5
46 changed files with 264 additions and 170 deletions

View File

@ -45,8 +45,13 @@ void textureInit(texture_t *texture, int32_t width, int32_t height,
GL_RGBA, GL_UNSIGNED_BYTE, pixels
);
}
glBindTexture(GL_TEXTURE_2D, 0);
textureBind(texture, 0x00);
}
void textureBind(texture_t *texture, textureslot_t slot) {
glActiveTexture(GL_TEXTURE0 + slot);
glBindTexture(GL_TEXTURE_2D, texture->id);
}
void textureBufferPixels(texture_t *texture,