Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Feb 26, 2024
1 parent 96da157 commit 9e0b58f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
1 change: 0 additions & 1 deletion examples/api/texture-3d/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export default class AppAnimationLoopTemplate extends AnimationLoopTemplate {
width: TEXTURE_DIMENSIONS,
height: TEXTURE_DIMENSIONS,
depth: TEXTURE_DIMENSIONS,
// @ts-ignore
data: textureData,
format: 'r8unorm',
mipmaps: true,
Expand Down
48 changes: 0 additions & 48 deletions examples/tutorials/lighting/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,54 +75,6 @@ const app: ShaderModule<AppUniforms, AppUniforms> = {
}
};

// const vs = glsl`\
// #version 300 es
// attribute vec3 positions;
// attribute vec3 normals;
// attribute vec2 texCoords;

// varying vec3 vPosition;
// varying vec3 vNormal;
// varying vec2 vUV;

// uniform appUniforms {
// mat4 modelMatrix;
// mat4 mvpMatrix;
// vec3 eyePosition;
// } app;

// void main(void) {
// vPosition = (app.modelMatrix * vec4(positions, 1.0)).xyz;
// vNormal = mat3(app.modelMatrix) * normals;
// vUV = texCoords;
// gl_Position = app.mvpMatrix * vec4(positions, 1.0);
// }
// `;

// const fs = glsl`\
// #version 300 es
// precision highp float;

// varying vec3 vPosition;
// varying vec3 vNormal;
// varying vec2 vUV;

// uniform sampler2D uTexture;

// uniform appUniforms {
// mat4 modelMatrix;
// mat4 mvpMatrix;
// vec3 eyePosition;
// } app;

// void main(void) {
// vec3 materialColor = texture2D(uTexture, vec2(vUV.x, 1.0 - vUV.y)).rgb;
// vec3 surfaceColor = lighting_getLightColor(materialColor, app.eyePosition, vPosition, normalize(vNormal));

// gl_FragColor = vec4(surfaceColor, 1.0);
// }
// `;

// APPLICATION

const eyePosition = [0, 0, 5];
Expand Down

0 comments on commit 9e0b58f

Please sign in to comment.