forked from townforge/townforge
game: slower selection pulse
This commit is contained in:
parent
2fc7cc6be1
commit
c52d0d265f
@ -2271,7 +2271,8 @@ void CityMeshUrho3D::Update(float timeStep, const Selection &selection, bool mar
|
||||
{
|
||||
time += timeStep;
|
||||
float pulseIntensity = (sinf(time * 10) + 1) / 2;
|
||||
Color color(pulseIntensity / 2, pulseIntensity / 2 + .75f, pulseIntensity / 2 + .75f, 0.5);
|
||||
float selectedpulseIntensity = (sinf(time * 3) + 1) / 2;
|
||||
Color color(selectedpulseIntensity / 2, selectedpulseIntensity / 2 + .75f, selectedpulseIntensity / 2 + .75f, 0.5);
|
||||
Color burncolor(pulseIntensity, pulseIntensity / 4, pulseIntensity / 4, 1);
|
||||
resources.selectedMaterial->SetShaderParameter("MatDiffColor", color);
|
||||
for (size_t y = 0; y < sections.size(); ++y)
|
||||
|
Loading…
Reference in New Issue
Block a user