mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-09 07:13:42 +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;
|
||||
}
|
||||
}
|
11
Assets/Scripts/Editor/TexturePreprocessor.cs.meta
Normal file
11
Assets/Scripts/Editor/TexturePreprocessor.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d33006e1540e5a649b300c3c7954e1f3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user