Changeset 3597 for trunk/src/opengl/mesa/shade_tmp.h
- Timestamp:
- May 23, 2000, 10:35:01 PM (25 years ago)
- File:
-
- 1 edited
-
trunk/src/opengl/mesa/shade_tmp.h (modified) (6 diffs)
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 sandervlExp $ */1 /* $Id: shade_tmp.h,v 1.2 2000-05-23 20:34:55 jeroen Exp $ */ 2 2 3 3 /* … … 29 29 */ 30 30 31 #ifdef __WIN32OS2__32 #include <misc.h>33 #endif34 35 31 static void TAG(shade_rgba_spec)( struct vertex_buffer *VB ) 36 32 { … … 139 135 } 140 136 141 d = LEN_3FV( VP );137 d = (GLfloat) LEN_3FV( VP ); 142 138 143 139 if (d > 1e-6) { … … 161 157 double x = PV_dot_dir * (EXP_TABLE_SIZE-1); 162 158 int k = (int) x; 163 GLfloat spot = ( light->SpotExpTable[k][0]159 GLfloat spot = (GLfloat) (light->SpotExpTable[k][0] 164 160 + (x-k)*light->SpotExpTable[k][1]); 165 161 attenuation *= spot; … … 238 234 239 235 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 ); 241 237 } else 242 238 GET_SHINE_TAB_ENTRY( tab, n_dot_h, spec_coef ); … … 558 554 if (NR_SIDES == 2) COPY_3V(sum[1], base[1]); 559 555 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) 566 557 fprintf(stderr, "light normal %d/%d, %f %f %f\n", 567 558 j, VB->Start, normal[0], normal[1], normal[2]); 568 #endif 559 569 560 570 561 foreach (light, &ctx->Light.EnabledList) {
Note:
See TracChangeset
for help on using the changeset viewer.
