Skip to content
Discussion options

You must be logged in to vote

Then you should swap out the state switch callbacks with the destroy callback and change the new callback like so:

function new() {
    blackAndWhite = new CustomShader("BlackAndWhite");
    addBNWShader();
}

function destroy() removeBNWShader();

In the stage script, you will additionally need to add the following to readd the shader upon exiting the song:

function destroy() GlobalScript.call("addBNWShader");

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@THEkatinamicrowave
Comment options

@r6915ee
Comment options

@THEkatinamicrowave
Comment options

@r6915ee
Comment options

Answer selected by THEkatinamicrowave
@THEkatinamicrowave
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants