Skip to content

Commit

Permalink
refactor(examples): update webgl examples
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 14, 2019
1 parent 052552f commit dbcf4c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/webgl-gpgpu-basics/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ctx = gpgpu({
size: 64, // might be adjusted / rounded up to next power of 2
inputs: 1, // max inputs
outputs: 3, // max outputs
version: 2 // webgl version
version: 1 // webgl version
});

const job = ctx.newJob({
Expand Down
10 changes: 3 additions & 7 deletions examples/webgl-ssao/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,11 @@ const app = () => {
}
const [colorTex, posTex, normTex, noiseTex, ssaoTex] = [
{},
{ internalFormat: gl.RGBA16F, type: gl.FLOAT },
{ internalFormat: gl.RGBA16F, type: gl.FLOAT },
{ format: gl.RGBA16F },
{ format: gl.RGBA16F },
{
image: NOISE,
internalFormat: gl.RG16F,
format: gl.RG,
type: gl.FLOAT
format: gl.RG16F
},
{}
].map((opts: Partial<TextureOpts>) =>
Expand Down Expand Up @@ -206,5 +204,3 @@ if (process.env.NODE_ENV !== "production") {
const hot = (<any>module).hot;
hot && hot.dispose(cancel);
}

//window["params"] = PARAMS;

0 comments on commit dbcf4c1

Please sign in to comment.