From 57999bec3c373a1a58365656bf7c6744b2872e0c Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 23 Jun 2025 12:38:35 +0800 Subject: [PATCH] clean up TextureProjection --- .../lib/src/utils/src/texture_projection.dart | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/thermion_dart/lib/src/utils/src/texture_projection.dart b/thermion_dart/lib/src/utils/src/texture_projection.dart index 1b88261e..0bf1ec35 100644 --- a/thermion_dart/lib/src/utils/src/texture_projection.dart +++ b/thermion_dart/lib/src/utils/src/texture_projection.dart @@ -1,6 +1,3 @@ -import 'dart:io'; - -import 'package:thermion_dart/src/filament/src/implementation/ffi_asset.dart'; import 'package:thermion_dart/src/filament/src/implementation/ffi_material.dart'; import 'package:thermion_dart/src/filament/src/implementation/ffi_camera.dart'; import 'package:thermion_dart/src/filament/src/implementation/ffi_render_target.dart'; @@ -34,10 +31,7 @@ class TextureProjection { static Future create(View sourceView, Uint8List depthWriteMaterial, Uint8List captureUvMaterial) async { final viewport = await sourceView.getViewport(); var depthWriteMat = await FilamentApp.instance!.createMaterial(depthWriteMaterial); - // File( - // "/Users/nickfisher/Documents/thermion/materials/linear_depth.filamat", - // ).readAsBytesSync(), - // ); + var depthWriteMi = await depthWriteMat.createInstance(); final depthView = await FilamentApp.instance!.createView() as FFIView; @@ -63,9 +57,6 @@ class TextureProjection { await depthView.setRenderTarget(depthWriteRenderTarget); final captureMat = await FilamentApp.instance!.createMaterial(captureUvMaterial) - // File( - // "/Users/nickfisher/Documents/thermion/materials/capture_uv.filamat", - // ).readAsBytesSync(), as FFIMaterial; var captureMi = await captureMat.createInstance() as FFIMaterialInstance; await captureMi.setParameterBool("flipUVs", true);