[SOLVED] Chromakey key change at runtime

Hi all,
I am trying to change chromakey key value at runtime in this test project,
Overview | Dashboard | Chromakey Video Test | PlayCanvas | 3D HTML5 & WebGL Game Engine
, without success.

How I don’t have experience with shaders yet, I am using this post,
Working with shader chunks - Help & Support - PlayCanvas Discussion
,as reference.

Initially I did these changes just to see if I can set the variables outside shader code

If somebody can help or indicate some document about, I appreciate.

I solved!

The variables needed to be in correct type.

1 Like

Thanks for sharing your solution!

1 Like