Skip to content

Commit

Permalink
fix audiolink/dynamic detection for emitters/cylinders
Browse files Browse the repository at this point in the history
  • Loading branch information
PiMaker committed Sep 8, 2024
1 parent f04b5bf commit c9d9af0
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions Editor/LTCGI_Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,24 +343,13 @@ public void UpdateMaterials(bool fast, LTCGI_Screen screen = null)
{
DestroyImmediate(mesh);
}

if (s.Dynamic)
{
dynamics = true;
}

if (s.ColorMode == ColorMode.AudioLink)
{
audiolinks = true;
}

if (s.ColorMode == ColorMode.Texture || s.ColorMode == ColorMode.SingleUV)
{
if (s.TextureIndex != 0)
statics = true;
}
}

dynamics |= s.Dynamic;
audiolinks |= s.ColorMode == ColorMode.AudioLink;
if (s.ColorMode == ColorMode.Texture || s.ColorMode == ColorMode.SingleUV)
statics |= s.TextureIndex != 0;

_LTCGI_Vertices_0t[i] = s.transform.TransformPoint(_LTCGI_Vertices_0[i]);
_LTCGI_Vertices_0t[i].w = _LTCGI_Vertices_0[i].w;
_LTCGI_Vertices_1t[i] = s.transform.TransformPoint(_LTCGI_Vertices_1[i]);
Expand Down

0 comments on commit c9d9af0

Please sign in to comment.