Pale void.
This commit is contained in:
parent
f4a06f3a37
commit
1cd0ba3f8f
|
@ -711,7 +711,6 @@ R_DrawAliasModel (entity_t *e)
|
||||||
|
|
||||||
// draw all the triangles
|
// draw all the triangles
|
||||||
if (model->fullbright) {
|
if (model->fullbright) {
|
||||||
|
|
||||||
qfglBindTexture (GL_TEXTURE_2D, texture);
|
qfglBindTexture (GL_TEXTURE_2D, texture);
|
||||||
if (vo->tex_coord)
|
if (vo->tex_coord)
|
||||||
GL_DrawAliasFrameTri_fb (vo);
|
GL_DrawAliasFrameTri_fb (vo);
|
||||||
|
|
|
@ -132,11 +132,11 @@ noise_plasma (unsigned char *noise, int size)
|
||||||
else
|
else
|
||||||
d = -size / 64;
|
d = -size / 64;
|
||||||
|
|
||||||
memset(noise, 128, sizeof (*noise));
|
memset (noise, 128, sizeof (*noise));
|
||||||
|
|
||||||
for (i = size; i > 0; i /= 2) {
|
for (i = size; i > 0; i /= 2) {
|
||||||
for (j=0; j < size; j += i) {
|
for (j = 0; j < size; j += i) {
|
||||||
for (k=0; k < size; k += i) {
|
for (k = 0; k < size; k += i) {
|
||||||
if (d >= 0)
|
if (d >= 0)
|
||||||
c = i * d;
|
c = i * d;
|
||||||
else
|
else
|
||||||
|
@ -144,7 +144,7 @@ noise_plasma (unsigned char *noise, int size)
|
||||||
|
|
||||||
c = qfrandom (c * 2) - c;
|
c = qfrandom (c * 2) - c;
|
||||||
|
|
||||||
for (a=j; a < j + i; a++)
|
for (a = j; a < j + i; a++)
|
||||||
for (b = k; b < k + i; b++)
|
for (b = k; b < k + i; b++)
|
||||||
noise[a * size + b] += c;
|
noise[a * size + b] += c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue