Kaynağa Gözat

Fix 3D texture mipmap generator.

ssinai1 5 yıl önce
ebeveyn
işleme
0134b64eb3
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      Source/Urho3D/Resource/Image.cpp

+ 4 - 0
Source/Urho3D/Resource/Image.cpp

@@ -1875,6 +1875,10 @@ SharedPtr<Image> Image::GetNextLevel() const
                                                       inOuterLower[x * 2 + 2] + inOuterLower[x * 2 + 6] +
                                                       inInnerUpper[x * 2 + 2] + inInnerUpper[x * 2 + 6] +
                                                       inInnerLower[x * 2 + 2] + inInnerLower[x * 2 + 6]) >> 3);
+                        out[x + 3] = (unsigned char)(((unsigned)inOuterUpper[x * 2 + 3] + inOuterUpper[x * 2 + 7] +
+                                                      inOuterLower[x * 2 + 3] + inOuterLower[x * 2 + 7] +
+                                                      inInnerUpper[x * 2 + 3] + inInnerUpper[x * 2 + 7] +
+                                                      inInnerLower[x * 2 + 3] + inInnerLower[x * 2 + 7]) >> 3);
                     }
                 }
             }