diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llcloud.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llcloud.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/linden/indra/newview/llcloud.cpp b/linden/indra/newview/llcloud.cpp index cf9574a..3b8e466 100644 --- a/linden/indra/newview/llcloud.cpp +++ b/linden/indra/newview/llcloud.cpp | |||
@@ -425,41 +425,6 @@ F32 LLCloudLayer::getDensityRegion(const LLVector3 &pos_region) | |||
425 | return density; | 425 | return density; |
426 | } | 426 | } |
427 | 427 | ||
428 | // a debug method that may yet be useful | ||
429 | void LLCloudLayer::renderDensityField() | ||
430 | { | ||
431 | // F32 x, y, z; | ||
432 | // U32 i, j, k; | ||
433 | // LLGLSNoTexture gls_ui_no_texture; | ||
434 | // // Render a bunch of triangles to represent the cloud density field | ||
435 | // glBegin(GL_TRIANGLES); | ||
436 | // for(j=0; j<CLOUD_GRIDS_PER_EDGE-1; j++) | ||
437 | // { | ||
438 | // y = j * mMetersPerGrid; | ||
439 | |||
440 | // for(i=0; i<CLOUD_GRIDS_PER_EDGE; i++) | ||
441 | // { | ||
442 | // k = i + j*CLOUD_GRIDS_PER_EDGE; | ||
443 | // x = i * mMetersPerGrid; | ||
444 | |||
445 | // z = 0.5f * CLOUD_MAX_HEIGHT + 40.0f * *(mDensityp + k + CLOUD_GRIDS_PER_EDGE); | ||
446 | // glColor3f(1.0f - *(mDensityp + k + CLOUD_GRIDS_PER_EDGE), *(mDensityp + k + CLOUD_GRIDS_PER_EDGE), 0.0f); | ||
447 | // glVertex3f(x, y+mMetersPerGrid, z); | ||
448 | |||
449 | // z = 0.5f * CLOUD_MAX_HEIGHT + 40.0f * *(mDensityp + k); | ||
450 | // glColor3f(1.0f - *(mDensityp + k), *(mDensityp + k), 0.0f); | ||
451 | // glVertex3f(x, y, z); | ||
452 | |||
453 | // z = 0.5f * CLOUD_MAX_HEIGHT + 40.0f * *(mDensityp + k + 1); | ||
454 | // glColor3f(1.0f - *(mDensityp + k + 1), *(mDensityp + k + 1), 0.0f); | ||
455 | // glVertex3f(x+mMetersPerGrid, y, z); | ||
456 | |||
457 | // } | ||
458 | // } | ||
459 | // glEnd(); | ||
460 | } | ||
461 | |||
462 | |||
463 | void LLCloudLayer::decompress(LLBitPack &bitpack, LLGroupHeader *group_headerp) | 428 | void LLCloudLayer::decompress(LLBitPack &bitpack, LLGroupHeader *group_headerp) |
464 | { | 429 | { |
465 | LLPatchHeader patch_header; | 430 | LLPatchHeader patch_header; |