Skip to content

Commit

Permalink
Fix compilation error when Vertex Lighting is on
Browse files Browse the repository at this point in the history
  • Loading branch information
Flafla2 committed Oct 10, 2019
1 parent 558bead commit f2795e3
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 104 deletions.
3 changes: 1 addition & 2 deletions Assets/Scene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ LightmapSettings:
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightingDataAsset: {fileID: 112000000, guid: 186267080dddf4607b7d526cccf2d517,
type: 2}
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
Expand Down
Binary file removed Assets/Scene/LightingData.asset
Binary file not shown.
8 changes: 0 additions & 8 deletions Assets/Scene/LightingData.asset.meta

This file was deleted.

Binary file removed Assets/Scene/ReflectionProbe-0.exr
Binary file not shown.
91 changes: 0 additions & 91 deletions Assets/Scene/ReflectionProbe-0.exr.meta

This file was deleted.

4 changes: 2 additions & 2 deletions Assets/Toon Standard Material.mat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Material:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Toon Test
m_Name: Toon Standard Material
m_Shader: {fileID: 4800000, guid: afd4e5df5a9cf4406a8e772d4ea69d78, type: 3}
m_ShaderKeywords: DAB_COORDS_TRIPLANAR
m_LightmapFlags: 4
Expand Down Expand Up @@ -72,7 +72,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 0.73
- _BumpScale: 0.91
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
Expand Down
2 changes: 1 addition & 1 deletion Assets/Toon Standard Shader/ToonLighting.cginc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void ComputeVertexLightColor (v2f i) {
unity_4LightPosX0, unity_4LightPosY0, unity_4LightPosZ0,
unity_LightColor[0].rgb, unity_LightColor[1].rgb,
unity_LightColor[2].rgb, unity_LightColor[3].rgb,
unity_4LightAtten0, i.worldPos, i.worldNormal
unity_4LightAtten0, i.worldPos, i.normal
);
#endif
}
Expand Down

0 comments on commit f2795e3

Please sign in to comment.