Browse Source

Fixes artifacts in Cloud Layer.

Cloud Layer uses normal. This applies appropriate profile for normal texture.
wcbx 6 năm trước cách đây
mục cha
commit
89989e08dd
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      Engine/source/environment/cloudLayer.cpp

+ 3 - 3
Engine/source/environment/cloudLayer.cpp

@@ -398,10 +398,10 @@ void CloudLayer::_initTexture()
    }
 
    if ( mTextureName.isNotEmpty() )
-      mTexture.set( mTextureName, &GFXStaticTextureSRGBProfile, "CloudLayer" );
+      mTexture.set( mTextureName, &GFXNormalMapProfile, "CloudLayer" );
 
    if ( mTexture.isNull() )
-      mTexture.set( GFXTextureManager::getWarningTexturePath(), &GFXStaticTextureSRGBProfile, "CloudLayer" );
+      mTexture.set( GFXTextureManager::getWarningTexturePath(), &GFXNormalMapProfile, "CloudLayer" );
 }
 
 void CloudLayer::_initBuffers()
@@ -501,4 +501,4 @@ void CloudLayer::_initBuffers()
    }
 
    mPB.unlock();   
-}
+}