Ignore:
Timestamp:
May 23, 2000, 10:35:01 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/mesa/shade_tmp.h

    r2938 r3597  
    1 /* $Id: shade_tmp.h,v 1.1 2000-02-29 00:48:37 sandervl Exp $ */
     1/* $Id: shade_tmp.h,v 1.2 2000-05-23 20:34:55 jeroen Exp $ */
    22
    33/*
     
    2929 */
    3030
    31 #ifdef __WIN32OS2__
    32 #include <misc.h>
    33 #endif
    34 
    3531static void TAG(shade_rgba_spec)( struct vertex_buffer *VB )
    3632{
     
    139135            }
    140136
    141             d = LEN_3FV( VP );
     137            d = (GLfloat) LEN_3FV( VP );
    142138
    143139            if (d > 1e-6) {
     
    161157                  double x = PV_dot_dir * (EXP_TABLE_SIZE-1);
    162158                  int k = (int) x;
    163                   GLfloat spot = (light->SpotExpTable[k][0]
     159                  GLfloat spot = (GLfloat) (light->SpotExpTable[k][0]
    164160                                  + (x-k)*light->SpotExpTable[k][1]);
    165161                  attenuation *= spot;
     
    238234
    239235            if (n_dot_h>1.0) {
    240                spec_coef = pow( n_dot_h, tab->shininess );
     236               spec_coef = (GLfloat) pow( n_dot_h, tab->shininess );
    241237            } else
    242238               GET_SHINE_TAB_ENTRY( tab, n_dot_h, spec_coef );
     
    558554            if (NR_SIDES == 2)  COPY_3V(sum[1], base[1]);
    559555
    560 #ifdef __WIN32OS2__
    561                dprintf(("light normal %d/%d, %f %f %f\n",
    562                        j, VB->Start, normal[0], normal[1], normal[2]));
    563 #else
    564             if (0)
    565 /*             if (ctx->Light.ShadeModel == GL_SMOOTH) */
     556            if (MESA_VERBOSE&VERBOSE_LIGHTING)
    566557               fprintf(stderr, "light normal %d/%d, %f %f %f\n",
    567558                       j, VB->Start, normal[0], normal[1], normal[2]);
    568 #endif
     559
    569560
    570561            foreach (light, &ctx->Light.EnabledList) {
Note: See TracChangeset for help on using the changeset viewer.