Explorar o código

Increased normals texture precision

MarcoROG %!s(int64=8) %!d(string=hai) anos
pai
achega
ae643152b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.width = outputTextureProperties.getWidth();
 		normalTexDesc.height = outputTextureProperties.getHeight();
-		normalTexDesc.format = PF_R8G8B8A8;
+		normalTexDesc.format = PF_FLOAT_R11G11B10;
 		normalTexDesc.usage = TU_RENDERTARGET;
 
 		SPtr<Texture> normalsTexture = Texture::create(normalTexDesc);