Test with new technique texturing

This commit is contained in:
Troispoils 2024-02-29 16:51:41 +01:00
parent bb723036c0
commit 3a7d169b30
8 changed files with 125 additions and 61 deletions

View file

@ -40,7 +40,7 @@ public class TexturesImage {
if (!portalEngine.datReader.contains(img)) continue;
using (var data = portalEngine.datReader.getFileReader(img)) {
var image = new RenderSurface(data);
if (image.width != 64) continue;
if (image.width != 256) continue;
var dataImg = DDSHeader.Generate(image);
using (MagickImage realImg = new MagickImage(dataImg)) {
magickImage = new(realImg);