Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Assets/Resources/Prefabs/Ball.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Transform:
m_GameObject: {fileID: 7581969690477629512}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.05, y: 0.05, z: 0.05}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3918960386272536723}
m_Father: {fileID: 0}
Expand Down
9 changes: 1 addition & 8 deletions Runtime/MaterialConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ public Shader GetShader()

private Shader GetShader(PbrMaterial vpxMaterial)
{
return vpxMaterial.VertexLerpWithUvEnabled
? Shader.Find("Visual Pinball/Srp/LerpVertex")
: GetShader();
return GetShader();
}

public static Material GetDefaultMaterial(BlendMode blendMode)
Expand Down Expand Up @@ -85,11 +83,6 @@ public Material CreateMaterial(PbrMaterial vpxMaterial, ITextureProvider texture
unityMaterial.CopyPropertiesFromMaterial(defaultMaterial);
unityMaterial.name = vpxMaterial.Id;

if (vpxMaterial.VertexLerpWithUvEnabled) {
unityMaterial.SetFloat(UVChannelVertices, Mesh.AnimationUVChannelVertices);
unityMaterial.SetFloat(UVChannelNormals, Mesh.AnimationUVChannelNormals);
}

// apply some basic manipulations to the color. this just makes very
// very white colors be clipped to 0.8204 aka 204/255 is 0.8
// this is to give room to lighting values. so there is more modulation
Expand Down