getTextureEncodingFromMap method

dynamic getTextureEncodingFromMap(
  1. dynamic map
)

Implementation

getTextureEncodingFromMap(map) {
  var encoding;

  if (map && map.isTexture) {
    encoding = map.encoding;
  } else if (map && map.isWebGLRenderTarget) {
    encoding = map.texture.encoding;
  } else {
    encoding = LinearEncoding;
  }

  return encoding;
}