mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
Fixed rendering bugs & crashes (#36)
* Fixed rendering bugs & crashes * Fixed shading of cubes (includes Steve & Camera head) * Fixed crash from rendering of Air item in hand * Fixed crash from right-clicking with Air item in-hand * TripodCameraRenderer no longer uses Cube::renderHorrible --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,7 @@ void TripodCameraRenderer::render(Entity* entity, float x, float y, float z, flo
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
// @TODO FIX: With ENH_ENTITY_SHADING on, the cube is fully opaque.
|
||||
glColor4f(0.5f, 0.5f, 0.5f, 0.5f);
|
||||
m_cube.renderHorrible(0.0625f);
|
||||
m_cube.render(0.0625f);
|
||||
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
glDisable(GL_BLEND);
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
|
||||
Reference in New Issue
Block a user