getTextureEncodingFromMap method
dynamic
getTextureEncodingFromMap(
- 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;
}