Fix shader ambient

This commit is contained in:
Sofia 2019-08-22 19:18:54 +03:00
parent dfe9367070
commit 9d4171aa39
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ Material:
- PixelSnap: 0
- _EnableExternalAlpha: 0
- _Intensity: 0
- _LightCount: 38
- _LightCount: 37
m_Colors:
- _AmbientLight: {r: 0, g: 0, b: 0, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}

View File

@ -88,7 +88,7 @@
sprite_col = sprite_col * input.color;
fixed4 col = sprite_col * total_light_col;
col = fixed4(col.rgb * col.a + _AmbientLight.rgb, sprite_col.a * _AmbientLight.a);
col = fixed4(col.rgb * col.a, sprite_col.a * _AmbientLight.a);
col.r = min(1, col.r + _Intensity);
col.g = min(1, col.g + _Intensity);

View File

@ -94,7 +94,7 @@ Material:
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Intensity: 0
- _LightCount: 38
- _LightCount: 37
- _LightingEnabled: 0
- _Metallic: 0
- _Mode: 1