白痕优化
This commit is contained in:
1 parent
60f024abaf
commit
ef09d2521a
1 file changed
+6
@@ -1149,6 +1149,12 @@ bool MeshTexture::ListCameraFaces(FaceDataViewArr& facesDatas, float fOutlierThr
|
||||
if (pixel.r > 250 || pixel.g > 250 || pixel.b > 250) {
|
||||
// continue;
|
||||
}
|
||||
|
||||
float brightnessPerceptual = (0.299f * pixel.r + 0.587f * pixel.g + 0.114f * pixel.b) / 255.0f;
|
||||
// printf("brightnessPerceptual=%f\n", brightnessPerceptual);
|
||||
|
||||
if (brightnessPerceptual>0.95f)
|
||||
continue;
|
||||
|
||||
// if (!(scene.mesh.invalidFacesRelative.data.contains(idxFace) && scene.is_face_visible_relative(idxFace)))
|
||||
// if (false)
|
||||
|
||||
Reference in new issue
Block a user