mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2025-02-20 20:31:00 +01:00
fix led power bug
This commit is contained in:
parent
09d372437b
commit
144e46f327
@ -32,7 +32,7 @@ public class LedSerial : MonoBehaviour
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Lights[i].intensity = LightIntensity / (Lights[i].color.r + Lights[i].color.g + Lights[i].color.b) +0.1f;
|
||||
Lights[i].intensity = (LightIntensity / (Lights[i].color.r + Lights[i].color.g + Lights[i].color.b)) +0.1f;
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user