getDefaultCubeTexture method

dynamic getDefaultCubeTexture()

Implementation

getDefaultCubeTexture() {
  if (this.defaultCubeTexture == null) {
    var texture = new CubeTexture(null);
    texture.minFilter = NearestFilter;
    texture.magFilter = NearestFilter;

    this._uploadTexture(texture);

    this.defaultCubeTexture = this.getTextureGPU(texture);
  }

  return this.defaultCubeTexture;
}