Banner Patterns!

Banner Patterns, some lighting fixes, and loot-table nbt!
This commit is contained in:
Tranqlmao
2026-07-14 20:31:05 -04:00
parent 93f1d55db9
commit d7a08122c7
7 changed files with 169 additions and 28 deletions
+11
View File
@@ -370,15 +370,26 @@ void glColorMask(bool red, bool green, bool blue, bool alpha)
RenderManager.StateSetWriteEnable(red, green, blue, alpha);
}
static float s_lightmapU = 240.0f;
static float s_lightmapV = 240.0f;
void glMultiTexCoord2f(int, float u , float v)
{
// Clamp these values just to be safe - the lighting code can get broken if we pass things to StateSetVertexTextureUV that are >= 1
if( u > 255.0f ) u = 255.0f;
if( v > 255.0f ) v = 255.0f;
s_lightmapU = u;
s_lightmapV = v;
RenderManager.StateSetVertexTextureUV( u / 256.0f, v / 256.0f);
}
void glGetLightmapUV(float &u, float &v)
{
u = s_lightmapU;
v = s_lightmapV;
}
void glTexGen(int coord, int mode, FloatBuffer *vec)
{
float *data = vec->_getDataPointer();