In my quest to update In The Dark to 0.8.0 I've run into a snag with shaders.
It looks like everything is good until it tries to send something to the shader.
When I do this:
graphics.lua.1341 : Invalid operation:
- Trying to send the wrong value type to the shader variable, or
- Trying to send array values with wrong dimension, or
- Invalid variable name.
This worked fine before so I guess there was some sort of syntax change somewhere? The fact that it's a vec2 may have something to do with it, sending a single float doesn't seem to cause any issues.
Yeah, the pixeleffect API got changed slightly to allow arrays to be sent. It interprets your current code as an array of floats I think. Bartbes' should work fine if you want a vec2 instead.
That worked, thanks guys.
One more thing, is love.graphics.isSupported() the same as love.graphics.hasPixelEffects() ? The latter seems to have been removed.
hughes wrote:have fun... the physics in 0.8.0 is updated to the recent box2d version, but yet undocumented (but that's ok, since 0.8 isn't released yet)!
FTFY
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.