Innitial commit of experimental v2 texture system port work. Compiles and runs on windows, at least. Fixing bugs as they come.
Need to test: localassetbrowser preview related floaters hgfloatertexteditor maps media textures! Currently very hacky web browser alpha masks on avatars bumpmaps Are all sky components appearing? LLViewerDynamicTexture (texture baking, browser, animated textures, anim previews, etc) Snapshot related features Customize avatar vfs floater UI textures in general Texture priority issues
This commit is contained in:
@@ -43,8 +43,7 @@
|
||||
#include "llviewercamera.h"
|
||||
#include "llviewerobject.h"
|
||||
#include "llimagegl.h"
|
||||
#include "llviewerimage.h"
|
||||
#include "llviewerimagelist.h"
|
||||
#include "llviewertexturelist.h"
|
||||
#include "llvoiceclient.h"
|
||||
#include "llrender.h"
|
||||
|
||||
@@ -143,7 +142,7 @@ LLVoiceVisualizer::LLVoiceVisualizer( const U8 type )
|
||||
for (int i=0; i<NUM_VOICE_SYMBOL_WAVES; i++)
|
||||
{
|
||||
mSoundSymbol.mWaveFadeOutStartTime [i] = mCurrentTime;
|
||||
mSoundSymbol.mTexture [i] = gImageList.getImageFromFile(sound_level_img[i], FALSE, TRUE);
|
||||
mSoundSymbol.mTexture [i] = LLViewerTextureManager::getFetchedTextureFromFile(sound_level_img[i], FALSE, LLViewerTexture::BOOST_UI);
|
||||
mSoundSymbol.mWaveActive [i] = false;
|
||||
mSoundSymbol.mWaveOpacity [i] = 1.0f;
|
||||
mSoundSymbol.mWaveExpansion [i] = 1.0f;
|
||||
@@ -370,8 +369,9 @@ void LLVoiceVisualizer::render()
|
||||
//-------------------------------------------------------------
|
||||
// create coordinates of the geometry for the dot
|
||||
//-------------------------------------------------------------
|
||||
LLVector3 l = LLViewerCamera::getInstance()->getLeftAxis() * DOT_SIZE;
|
||||
LLVector3 u = LLViewerCamera::getInstance()->getUpAxis() * DOT_SIZE;
|
||||
LLViewerCamera* camera = LLViewerCamera::getInstance();
|
||||
LLVector3 l = camera->getLeftAxis() * DOT_SIZE;
|
||||
LLVector3 u = camera->getUpAxis() * DOT_SIZE;
|
||||
|
||||
LLVector3 bottomLeft = mSoundSymbol.mPosition + l - u;
|
||||
LLVector3 bottomRight = mSoundSymbol.mPosition - l - u;
|
||||
@@ -497,8 +497,8 @@ void LLVoiceVisualizer::render()
|
||||
F32 width = i * WAVE_WIDTH_SCALE * mSoundSymbol.mWaveExpansion[i];
|
||||
F32 height = i * WAVE_HEIGHT_SCALE * mSoundSymbol.mWaveExpansion[i];
|
||||
|
||||
LLVector3 l = LLViewerCamera::getInstance()->getLeftAxis() * width;
|
||||
LLVector3 u = LLViewerCamera::getInstance()->getUpAxis() * height;
|
||||
LLVector3 l = camera->getLeftAxis() * width;
|
||||
LLVector3 u = camera->getUpAxis() * height;
|
||||
|
||||
LLVector3 bottomLeft = mSoundSymbol.mPosition + l - u;
|
||||
LLVector3 bottomRight = mSoundSymbol.mPosition - l - u;
|
||||
|
||||
Reference in New Issue
Block a user