fix crunchiness on textures I create

This commit is contained in:
Anthony Samms
2025-11-20 16:53:53 -05:00
parent b26c47a23b
commit 547761eb0d
5 changed files with 17 additions and 3 deletions

View File

@@ -66,6 +66,7 @@ class VideoPlayer:
'format': ray.PIXELFORMAT_UNCOMPRESSED_R8G8B8
})
self.texture = ray.LoadTextureFromImage(image[0])
ray.SetTextureFilter(self.texture, ray.TEXTURE_FILTER_TRILINEAR)
else:
if frame_data is not None:
frame_bytes = frame_data.tobytes()