Skip to content

Commit d3bec28

Browse files
committed
prepare build
1 parent 59c0656 commit d3bec28

File tree

1,191 files changed

+67851
-496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,191 files changed

+67851
-496
lines changed

Assets/Downloads/fabric_pattern_05_1k.blend/Materials/fabric_pattern_05_col_01_1k.mat

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ Material:
2424
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
2525
m_Parent: {fileID: 0}
2626
m_ModifiedSerializedProperties: 0
27-
m_ValidKeywords:
28-
- _NORMALMAP
27+
m_ValidKeywords: []
2928
m_InvalidKeywords: []
3029
m_LightmapFlags: 4
3130
m_EnableInstancingVariants: 0
@@ -64,7 +63,7 @@ Material:
6463
m_Scale: {x: 1, y: 1}
6564
m_Offset: {x: 0, y: 0}
6665
- _MainTex:
67-
m_Texture: {fileID: 8900000, guid: ddbf30e345d259a4984a4c9a490f9fab, type: 3}
66+
m_Texture: {fileID: 0}
6867
m_Scale: {x: 0.5, y: 0.5}
6968
m_Offset: {x: 0, y: 0}
7069
- _MetallicGlossMap:

Assets/Downloads/namaqualand_rocks_01_1k.blend/Materials/namaqualand_rocks_01_diff_1k.mat

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ Material:
2424
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
2525
m_Parent: {fileID: 0}
2626
m_ModifiedSerializedProperties: 0
27-
m_ValidKeywords:
28-
- _NORMALMAP
27+
m_ValidKeywords: []
2928
m_InvalidKeywords: []
3029
m_LightmapFlags: 4
3130
m_EnableInstancingVariants: 0
@@ -64,7 +63,7 @@ Material:
6463
m_Scale: {x: 1, y: 1}
6564
m_Offset: {x: 0, y: 0}
6665
- _MainTex:
67-
m_Texture: {fileID: 8900000, guid: a000a40f8ede7df41b9fd80137e2f124, type: 3}
66+
m_Texture: {fileID: 0}
6867
m_Scale: {x: 1, y: 1}
6968
m_Offset: {x: 0, y: 0}
7069
- _MetallicGlossMap:

Assets/Editor/FindBadBumpMaps.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#if UNITY_EDITOR
2+
using UnityEditor;
3+
using UnityEngine;
4+
5+
public static class FindBadBumpMaps {
6+
[MenuItem("Tools/Find Cubemaps in BumpMap Slots")]
7+
public static void ScanMaterials() {
8+
int found = 0;
9+
// 全项目扫描所有材质
10+
var guids = AssetDatabase.FindAssets("t:Material");
11+
foreach (var g in guids) {
12+
var path = AssetDatabase.GUIDToAssetPath(g);
13+
var mat = AssetDatabase.LoadAssetAtPath<Material>(path);
14+
if (mat != null && mat.HasProperty("_BumpMap")) {
15+
var tex = mat.GetTexture("_BumpMap");
16+
if (tex is Cubemap) {
17+
Debug.LogError($"材质 `{mat.name}` 的 _BumpMap 插槽里放了 Cubemap:{tex.name}", mat);
18+
found++;
19+
}
20+
}
21+
}
22+
23+
if (found == 0)
24+
Debug.Log("✔️ 没有在 _BumpMap 找到任何 Cubemap。");
25+
else
26+
Debug.Log($"⚠️ 共找到 {found} 个错误材质,请检查 Console 列表定位并修正。");
27+
}
28+
}
29+
#endif

Assets/Editor/FindBadBumpMaps.cs.meta

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Model/House.blend.meta

Lines changed: 176 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Model/House.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)