Fix shader ambient
This commit is contained in:
parent
dfe9367070
commit
9d4171aa39
@ -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}
|
||||
|
@ -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);
|
||||
|
@ -94,7 +94,7 @@ Material:
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Intensity: 0
|
||||
- _LightCount: 38
|
||||
- _LightCount: 37
|
||||
- _LightingEnabled: 0
|
||||
- _Metallic: 0
|
||||
- _Mode: 1
|
||||
|
Loading…
Reference in New Issue
Block a user