Changeset 2762 for research


Ignore:
Timestamp:
Aug 25, 2008, 12:22:07 AM (11 years ago)
Author:
Sam Hocevar
Message:
  • Fix the transparency in the 3D palette viewer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • research/2008-rubik/colorcube/visu.c

    r2723 r2762  
    2727    glColor3f(1.0, 1.0, 1.0);
    2828
     29    glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);
     30    glDisable(GL_CULL_FACE);
     31
     32    glShadeModel(GL_SMOOTH);
     33    glEnable(GL_BLEND);
    2934    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    3035    glEnable(GL_DEPTH_TEST);
    31     glShadeModel(GL_SMOOTH);
    3236
    3337    setcamera();
     
    7175
    7276#define F(x) ((x)*1.01 - 0.005)
    73 #define CP       glColor4f(x0,y0,z0,0.5); glVertex3f(x0,y0,z0)
     77#define CP       glColor4f(x0,y0,z0,0.9); glVertex3f(x0,y0,z0)
    7478#define BP       glColor3f(0.0,0.0,0.0); glVertex3f(F(x0),F(y0),F(z0))
    7579#define BLACK    x0 = y0 = z0 = 0.0
     
    128132        glEnd();
    129133        glTranslatef(.5, .5, .4);
    130         glColor4f(.5, .5, .5, .5);
     134        glColor4f(.2, .2, .2, .5);
    131135        glBegin(GL_QUADS);
    132136            glVertex3f(0.891063,-0.45388,0);
Note: See TracChangeset for help on using the changeset viewer.