Rev 4768 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4768 | Rev 5056 | ||
---|---|---|---|
Line 75... | Line 75... | ||
75 | float clamped_shade = min(max(shade*shadescale, 0), shadebound); |
75 | float clamped_shade = min(max(shade*shadescale, 0), shadebound); |
76 | 76 | ||
77 | // 8-bit tiles, i.e. non-hightiles and non-models, don't get additional
|
77 | // 8-bit tiles, i.e. non-hightiles and non-models, don't get additional
|
78 | // glColor() shading with r_usetileshades!
|
78 | // glColor() shading with r_usetileshades!
|
79 | if (getrendermode() == REND_POLYMOST && r_usetileshades && |
79 | if (getrendermode() == REND_POLYMOST && r_usetileshades && |
- | 80 | !(globalflags & GLOBAL_NO_GL_TILESHADES) && |
|
80 | eligible_for_tileshades(globalpicnum, globalpal)) |
81 | eligible_for_tileshades(globalpicnum, globalpal)) |
81 | return 1.f; |
82 | return 1.f; |
82 | 83 | ||
83 | return ((float)(numshades-clamped_shade))/(float)numshades; |
84 | return ((float)(numshades-clamped_shade))/(float)numshades; |
84 | }
|
85 | }
|