diff options
author | Graham Linden <graham@lindenlab.com> | 2018-06-11 22:39:57 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-06-11 22:39:57 +0100 |
commit | fc8d0de673da0e02915556008a365aca67472eba (patch) | |
tree | dab865b50ca106152cae92174995fb8dbe5935e1 /indra/newview/llsky.cpp | |
parent | 0f608cb764856ae8586a9d9631842a782cb70a23 (diff) |
Make cloud rendering use textures defined in sky settings and add code to shaders to lerp between current and next cloud texture.
Diffstat (limited to 'indra/newview/llsky.cpp')
-rw-r--r-- | indra/newview/llsky.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llsky.cpp b/indra/newview/llsky.cpp index 6b7db9bb01..5d85778da5 100644 --- a/indra/newview/llsky.cpp +++ b/indra/newview/llsky.cpp @@ -143,6 +143,13 @@ void LLSky::setMoonTextures(const LLUUID& moon_texture, const LLUUID& moon_textu } } +void LLSky::setCloudNoiseTextures(const LLUUID& cloud_noise_texture, const LLUUID& cloud_noise_texture_next) +{ + if(mVOSkyp.notNull()) { + mVOSkyp->setCloudNoiseTextures(cloud_noise_texture, cloud_noise_texture_next); + } +} + void LLSky::setSunAndMoonDirectionsCFR(const LLVector3 &sun_direction, const LLVector3 &moon_direction) { if(mVOSkyp.notNull()) { |