Skip to content

Commit 13e7895

Browse files
committed
rp: Add object type to material.
1 parent ac18819 commit 13e7895

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Assets/Materials/DefaultBall.mat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Material:
2121
serializedVersion: 3
2222
m_TexEnvs:
2323
- _BaseMap:
24-
m_Texture: {fileID: 0}
24+
m_Texture: {fileID: 2800000, guid: 9a9c103bf5a1cf143b2694c027a0cf61, type: 3}
2525
m_Scale: {x: 1, y: 1}
2626
m_Offset: {x: 0, y: 0}
2727
- _BumpMap:
@@ -45,7 +45,7 @@ Material:
4545
m_Scale: {x: 1, y: 1}
4646
m_Offset: {x: 0, y: 0}
4747
- _MainTex:
48-
m_Texture: {fileID: 0}
48+
m_Texture: {fileID: 2800000, guid: 9a9c103bf5a1cf143b2694c027a0cf61, type: 3}
4949
m_Scale: {x: 1, y: 1}
5050
m_Offset: {x: 0, y: 0}
5151
- _MetallicGlossMap:
@@ -91,12 +91,12 @@ Material:
9191
- _GlossMapScale: 0
9292
- _Glossiness: 0
9393
- _GlossyReflections: 0
94-
- _Metallic: 0
94+
- _Metallic: 0.572
9595
- _OcclusionStrength: 1
9696
- _Parallax: 0.005
9797
- _QueueOffset: 0
9898
- _ReceiveShadows: 1
99-
- _Smoothness: 0.5
99+
- _Smoothness: 0.645
100100
- _SmoothnessTextureChannel: 0
101101
- _SpecularHighlights: 1
102102
- _SrcBlend: 1

Runtime/MaterialConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public Shader GetShader()
4949
return Shader.Find("Universal Render Pipeline/Lit");
5050
}
5151

52-
public UnityEngine.Material CreateMaterial(PbrMaterial vpxMaterial, TableAuthoring table, StringBuilder debug = null)
52+
public UnityEngine.Material CreateMaterial(PbrMaterial vpxMaterial, TableAuthoring table, Type objectType, StringBuilder debug = null)
5353
{
5454
var unityMaterial = new UnityEngine.Material(GetShader())
5555
{

0 commit comments

Comments
 (0)