void R_Model_Sprite_Draw_TransparentCallback(const entity_render_t *ent, const rtlight_t *rtlight, int numsurfaces, int *surfacelist)
{
int i;
- model_t *model = ent->model;
+ dp_model_t *model = ent->model;
vec3_t left, up, org, mforward, mleft, mup, middle;
float scale, dx, dy, hud_vs_screen;
int edge = 0;
// fixed HUD pixel size specified in sprite
// honors scale
// honors a global label scaling cvar
+
+ if(r_waterstate.renderingscene) // labels are considered HUD items, and don't appear in reflections
+ return;
// See the R_TrackSprite definition for a reason for this copying
VectorCopy(r_refdef.view.left, left);
// honors a global label scaling cvar before the rounding
// FIXME assumes that 1qu is 1 pixel in the sprite like in SPR32 format. Should not do that, but instead query the source image! This bug only applies to the roundtopixels case, though.
+ if(r_waterstate.renderingscene) // labels are considered HUD items, and don't appear in reflections
+ return;
+
// See the R_TrackSprite definition for a reason for this copying
VectorCopy(r_refdef.view.left, left);
VectorCopy(r_refdef.view.up, up);
if (ent->frameblend[i].lerp >= 0.01f)
{
mspriteframe_t *frame = model->sprite.sprdata_frames + ent->frameblend[i].frame;
- texture_t *texture = model->data_textures + ent->frameblend[i].frame;
+ texture_t *texture = R_GetCurrentTexture(model->data_textures + ent->frameblend[i].frame);
#if 0
vec3_t o, l, u;
#endif
- R_UpdateTextureInfo(ent, texture);
// SPR_LABEL should not use depth test AT ALL
if(model->sprite.sprnum_type == SPR_LABEL || model->sprite.sprnum_type == SPR_LABEL_SCALE)