Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader code generation bug with AudioLink + Volume band #63

Open
fluffy-critter opened this issue Jun 13, 2024 · 0 comments
Open

Shader code generation bug with AudioLink + Volume band #63

fluffy-critter opened this issue Jun 13, 2024 · 0 comments

Comments

@fluffy-critter
Copy link

fluffy-critter commented Jun 13, 2024

I'm running Poiyomi 9.0.57, and am having a problem with AudioLink tied to the Vertex Options settings. I have my material set to scale the vertices based on the Volume band, and it works fine when unlocked but as soon as I lock the shader I get a bunch of "array index out of bounds" errors. If I inspect the generated .shader source all of the errors are on lines that look like:

if (any(float4(0,0,0,0)) || any(float4(1,1,1,0)))
{
	ALScale = lerp(float4(0,0,0,0).xyz + float4(0,0,0,0).w, float4(1,1,1,0).xyz + float4(1,1,1,0).w, audioLinkBands[(4.0 /*_VertexLocalScaleALBand*/)]);
}

I notice that audioLinkBands is declared as a float4 in this context, which tells me that the Volume band would not have any way to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant