Skip to content

Commit

Permalink
chore: workaround for a timing error on threeify.org.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhouston committed Jul 16, 2020
1 parent dd46e5d commit d2e39c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/examples/cubemaps/render/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ import { RenderingContext } from "../../../lib/renderers/webgl/RenderingContext"
import { makeTexImage2DFromCubeTexture } from "../../../lib/renderers/webgl/textures/TexImage2D";
import { TextureFilter } from "../../../lib/renderers/webgl/textures/TextureFilter";
import { cubeMapFaces, CubeMapTexture } from "../../../lib/textures/CubeTexture";
import { fetchImage } from "../../../lib/textures/loaders/Image";
import { Texture } from "../../../lib/textures/Texture";
import fragmentSourceCode from "./fragment.glsl";
import { patternMaterial } from "./pattern/PatternMaterial";
import vertexSourceCode from "./vertex.glsl";

async function init(): Promise<null> {
// TODO: Required because of a timing error on Threeify.org website. Fix this.
const texture = new Texture(await fetchImage("/assets/textures/uv_grid_opengl.jpg"));

const geometry = icosahedronGeometry(0.75, 4);
const material = new ShaderMaterial(vertexSourceCode, fragmentSourceCode);
const imageSize = new Vector2(1024, 1024);
Expand Down

0 comments on commit d2e39c8

Please sign in to comment.