You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -157,7 +164,7 @@ void RenderGLToTexture(int width, int height, Material material)
157
164
158
165
while(kk<fullBuffer.Length-renderBuffer.Length)
159
166
{// search for first 0-pass from right and then take as offset
160
-
if(/*(fullBuffer[fullBuffer.Length - 1 - kk] > 0f && !lastWasPositive)*/(fullBuffer[fullBuffer.Length-1-kk]<0f&&lastWasPositive))// triggers on rising zero crossing only
167
+
if((fullBuffer[fullBuffer.Length-1-kk]>0f&&!lastWasPositive)/*(fullBuffer[fullBuffer.Length - 1 - kk] < 0f && lastWasPositive)*/)// triggers on rising zero crossing only
161
168
{
162
169
foundZeroCrossing=true;
163
170
break;
@@ -188,7 +195,8 @@ void RenderGLToTexture(int width, int height, Material material)
0 commit comments