mapTextureMapping method

Texture mapTextureMapping(
  1. Texture texture,
  2. int? mapping
)

Implementation

Texture mapTextureMapping(Texture texture, int? mapping) {
  if (mapping == EquirectangularReflectionMapping) {
    texture.mapping = CubeReflectionMapping;
  }
  else if (mapping == EquirectangularRefractionMapping) {
    texture.mapping = CubeRefractionMapping;
  }
  return texture;
}