Selaa lähdekoodia

Increased normals texture precision

MarcoROG 8 vuotta sitten
vanhempi
sitoutus
ae643152b5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Source/BansheeEditor/Source/BsScenePicking.cpp

+ 1 - 1
Source/BansheeEditor/Source/BsScenePicking.cpp

@@ -261,7 +261,7 @@ namespace bs
 		normalTexDesc.type = TEX_TYPE_2D;
 		normalTexDesc.type = TEX_TYPE_2D;
 		normalTexDesc.width = outputTextureProperties.getWidth();
 		normalTexDesc.width = outputTextureProperties.getWidth();
 		normalTexDesc.height = outputTextureProperties.getHeight();
 		normalTexDesc.height = outputTextureProperties.getHeight();
-		normalTexDesc.format = PF_R8G8B8A8;
+		normalTexDesc.format = PF_FLOAT_R11G11B10;
 		normalTexDesc.usage = TU_RENDERTARGET;
 		normalTexDesc.usage = TU_RENDERTARGET;
 
 
 		SPtr<Texture> normalsTexture = Texture::create(normalTexDesc);
 		SPtr<Texture> normalsTexture = Texture::create(normalTexDesc);