Added texture preprocessor to enforce no filtering

This commit is contained in:
nothke
2024-08-17 13:08:28 +02:00
parent f20994a8db
commit 63747c7f7f
5 changed files with 36 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
using UnityEngine;
using UnityEditor;
class TexturePreprocessor : AssetPostprocessor
{
void OnPreprocessTexture()
{
// if (assetPath.Contains("_bumpmap"))
TextureImporter textureImporter = (TextureImporter)assetImporter;
textureImporter.filterMode = FilterMode.Point;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d33006e1540e5a649b300c3c7954e1f3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: