No problem. I got the Dynamic Shader to work in my project just fine.
I noticed that on 1st Gen Apple products or older devices like the iPhone 5S that the Dynamic Shader dramatically slows down the game. Almost making it unplayable with a moving light source. But I did some experimenting… I made the light source not move .I stop the Shader right after the match 3 board is visible.
The Shader still SHADES the gem pieces even while the Dynamic Shader is stopped!
Some levels I have the light source turn off and on to make the game harder. So I noticed you have to turn the Shader ON when you move the light source then I instantly turn it OFF. This is part of the code:
Match3.ShaderLightSource.x = math.random(0, device)
dynamic_shader.start()
dynamic_shader.setLightRadius( math.random(2500, 3500) )
timer.performWithDelay( 1, function() dynamic_shader.stop() end)
But the stop has to happen a millisecond later. So now the game works super fast on the 1st gen apple devices and older iPhone 5S devices.
Does this sound right to you Jonathan? Does the Shader still Shade the objects when it is stopped as long as the light source doesn’t move or the radius of the light doesn’t change? Do you only have to turn the shader ON when you move the light or change the light radius?
Thanks for a wonderful plugin
Jeff