I’m trying to use this example to start understanding how Shaders work in OpenFL, but I’m having two issues. First in the API documentation it doesn’t look like a class ShaderFilter exists anywhere.
Also, where is the
alphaBitmapData variable used in the example coming from?
Additionally, it looks like
shader.data is null for me, so I end up getting a
Cannot access a property or method of a null object reference error in runtime.
EDIT: Found the ShaderFilter in the source code, that seems to be just a documentation problem. Still no luck with the alphaBitmapData.
shader.data seems to happen when compiling to a platform that doesn’t support shaders.