mirror of
https://github.com/nothke/quality-control.git
synced 2025-09-01 08:03:43 +00:00
Added texture preprocessor to enforce no filtering
This commit is contained in:
12
Assets/Scripts/Editor/TexturePreprocessor.cs
Normal file
12
Assets/Scripts/Editor/TexturePreprocessor.cs
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user