transparent background, wrap mode

This commit is contained in:
David Rose 2009-02-11 01:27:42 +00:00
parent d521ca04fa
commit 84f25781b4
2 changed files with 6 additions and 3 deletions

View File

@ -119,7 +119,7 @@ Palettizer() {
_shadow_color_type = (PNMFileType *)NULL;
_shadow_alpha_type = (PNMFileType *)NULL;
_pal_x_size = _pal_y_size = 512;
_background.set(0.0, 0.0, 0.0, 1.0);
_background.set(0.0, 0.0, 0.0, 0.0);
_cutout_mode = EggRenderMode::AM_dual;
_cutout_ratio = 0.3;

View File

@ -484,8 +484,11 @@ update_egg() {
nassertv(image != (PaletteImage *)NULL);
image->update_egg_tex(_egg_tex);
// Palette images never wrap.
_egg_tex->set_wrap_mode(EggTexture::WM_clamp);
// Palette images never wrap, so the wrap mode doesn't matter. We
// let this default to unspecified, which means the images will
// wrap by default, which is the fastest mode for tinydisplay anyway.
_egg_tex->set_wrap_mode(EggTexture::WM_unspecified);
_egg_tex->set_wrap_u(EggTexture::WM_unspecified);
_egg_tex->set_wrap_v(EggTexture::WM_unspecified);