When I use ATF textures with GFilters, I catch runtime error "#3763 Sampler 0 binds a texture that that does not match the read mode specified in AGAL."
To solve this problem I insert dxt5 parameter to fragmentCode. In order to avoid copying the class code, I use this quick, dirty and not a reliable hack.
public class GBlurPassFilterATF extends GBlurPassFilter {
public function GBlurPassFilterATF(p_blur:int = 0, p_direction:int = 0) {
super(p_blur,p_direction);
while (super.fragmentCode.indexOf('linear,mipnone') >= 0) super.fragmentCode = super.fragmentCode.replace('linear,mipnone','linear,dxt5,mipnone');
}
}Perhaps it would be correct to pass texture_type(atf_type) parameter to filter constructor?