getMaxAnisotropy method

num getMaxAnisotropy()

Implementation

num getMaxAnisotropy() {
  if (maxAnisotropy != null) return maxAnisotropy!;

  var extension = extensions.get('EXT_texture_filter_anisotropic');

  if (extension != null) {
    maxAnisotropy = gl.getParameter(gl.MAX_TEXTURE_MAX_ANISOTROPY_EXT);
  } else {
    maxAnisotropy = 0;
  }

  return maxAnisotropy!;
}