浏览代码

Added image template preprocessor to avoid compressing any reference images from the tests

Added missing meta files
/RenderPassXR_Sandbox
Andre McGrail 7 年前
当前提交
1badfd13
共有 22 个文件被更改,包括 54 次插入20 次删除
  1. 2
      ImageTemplates/HDRenderPipeline/Scenes/0002-Subsurface scattering.unity.png.meta
  2. 2
      ImageTemplates/LightweightPipeline/Scenes/001_SimpleCube.unity.png.meta
  3. 2
      ImageTemplates/LightweightPipeline/Scenes/002_Camera_Clip.unity.png.meta
  4. 2
      ImageTemplates/LightweightPipeline/Scenes/003_Camera_Ortho.unity.png.meta
  5. 2
      ImageTemplates/LightweightPipeline/Scenes/004_Camera_TargetTexture.unity.png.meta
  6. 2
      ImageTemplates/LightweightPipeline/Scenes/005_LitBakedEmission.unity.png.meta
  7. 2
      ImageTemplates/LightweightPipeline/Scenes/006_LitShaderLightProbes.unity.png.meta
  8. 2
      ImageTemplates/LightweightPipeline/Scenes/007_LitShaderMaps.unity.png.meta
  9. 2
      ImageTemplates/LightweightPipeline/Scenes/008_LitShaderReflection.unity.png.meta
  10. 2
      ImageTemplates/LightweightPipeline/Scenes/009_LightweightShading.unity.png.meta
  11. 2
      ImageTemplates/LightweightPipeline/Scenes/010_MultiplePointLights.unity.png.meta
  12. 2
      ImageTemplates/LightweightPipeline/Scenes/011_UnlitSprites.unity.png.meta
  13. 2
      ImageTemplates/LightweightPipeline/Scenes/012_PBS_EnvironmentBRDF_Spheres.unity.png.meta
  14. 2
      ImageTemplates/LightweightPipeline/Scenes/016_Lighting_Scene_Directional.unity.png.meta
  15. 2
      ImageTemplates/LightweightPipeline/Scenes/017_Lighting_Scene_DirectionalBaked.unity.png.meta
  16. 2
      ImageTemplates/LightweightPipeline/Scenes/018_Lighting_Scene_DirectionalBakedIndirect.unity.png.meta
  17. 2
      ImageTemplates/LightweightPipeline/Scenes/019_Lighting_Scene_PointLights.unity.png.meta
  18. 2
      ImageTemplates/LightweightPipeline/Scenes/020_Lighting_BasicDirectional.unity.png.meta
  19. 2
      ImageTemplates/LightweightPipeline/Scenes/021_Lighting_BasicPoint.unity.png.meta
  20. 2
      ImageTemplates/LightweightPipeline/Scenes/022_Lighting_BasicSpot.unity.png.meta
  21. 21
      ImageTemplates/TemplatePreprocessor.cs
  22. 13
      ImageTemplates/TemplatePreprocessor.cs.meta

2
ImageTemplates/HDRenderPipeline/Scenes/0002-Subsurface scattering.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/001_SimpleCube.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/002_Camera_Clip.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/003_Camera_Ortho.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/004_Camera_TargetTexture.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/005_LitBakedEmission.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/006_LitShaderLightProbes.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/007_LitShaderMaps.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/008_LitShaderReflection.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/009_LightweightShading.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/010_MultiplePointLights.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/011_UnlitSprites.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/012_PBS_EnvironmentBRDF_Spheres.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/016_Lighting_Scene_Directional.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/017_Lighting_Scene_DirectionalBaked.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/018_Lighting_Scene_DirectionalBakedIndirect.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/019_Lighting_Scene_PointLights.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/020_Lighting_BasicDirectional.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/021_Lighting_BasicPoint.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

2
ImageTemplates/LightweightPipeline/Scenes/022_Lighting_BasicSpot.unity.png.meta


maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0

21
ImageTemplates/TemplatePreprocessor.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
/// <summary>
/// Template preprocessor.
/// This script forces all textures in the folder 'ImageTemplates' to have no compression, meaning import times will be much faster, especially when switching platforms
/// </summary>
public class TemplatePreprocessor : AssetPostprocessor {
void OnPreprocessTexture()
{
if (assetPath.Contains("ImageTemplates"))
{
TextureImporter textureImporter = (TextureImporter)assetImporter;
textureImporter.textureCompression = TextureImporterCompression.Uncompressed;
}
}
}

13
ImageTemplates/TemplatePreprocessor.cs.meta


fileFormatVersion: 2
guid: 6ea75caec699648b9ad2fed3e987dd97
timeCreated: 1504697103
licenseType: Pro
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存