commit
62005a3b52
|
|
@ -38,7 +38,9 @@ VARYING vec2 vary_texcoord0;
|
|||
|
||||
void main()
|
||||
{
|
||||
vec4 color = vertex_color*texture2D(diffuseMap, vary_texcoord0.xy);
|
||||
color.a *= custom_alpha;
|
||||
vec4 color = texture2D(diffuseMap, vary_texcoord0.xy);
|
||||
color.rgb = pow(color.rgb, vec3(0.45));
|
||||
color.rgb *= vertex_color.rgb;
|
||||
color.a *= max(custom_alpha, vertex_color.a);
|
||||
frag_color = color;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include "lltexturectrl.h"
|
||||
#include "llcolorswatch.h"
|
||||
#include "llxyvector.h"
|
||||
#include "llviewercontrol.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
|
|
@ -88,6 +89,7 @@ BOOL LLPanelSettingsWaterMainTab::postBuild()
|
|||
getChild<LLUICtrl>(FIELD_WATER_UNDERWATER_MOD)->setCommitCallback([this](LLUICtrl *, const LLSD &) { onFogUnderWaterChanged(); });
|
||||
|
||||
mTxtNormalMap->setDefaultImageAssetID(LLSettingsWater::GetDefaultWaterNormalAssetId());
|
||||
mTxtNormalMap->setBlankImageAssetID(LLUUID( gSavedSettings.getString( "DefaultBlankNormalTexture" )));
|
||||
mTxtNormalMap->setCommitCallback([this](LLUICtrl *, const LLSD &) { onNormalMapChanged(); });
|
||||
|
||||
getChild<LLUICtrl>(FIELD_WATER_WAVE2_XY)->setCommitCallback([this](LLUICtrl *, const LLSD &) { onSmallWaveChanged(); });
|
||||
|
|
|
|||
Loading…
Reference in New Issue