From 9e0b58f69ef6741aff42bc88023a1b4024e8c113 Mon Sep 17 00:00:00 2001 From: Ib Green Date: Sun, 25 Feb 2024 20:15:56 -0500 Subject: [PATCH] lint --- examples/api/texture-3d/app.ts | 1 - examples/tutorials/lighting/app.ts | 48 ------------------------------ 2 files changed, 49 deletions(-) diff --git a/examples/api/texture-3d/app.ts b/examples/api/texture-3d/app.ts index d85b6d5ea2..04d6874fe0 100644 --- a/examples/api/texture-3d/app.ts +++ b/examples/api/texture-3d/app.ts @@ -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, diff --git a/examples/tutorials/lighting/app.ts b/examples/tutorials/lighting/app.ts index eda181ca74..c077f9b53d 100644 --- a/examples/tutorials/lighting/app.ts +++ b/examples/tutorials/lighting/app.ts @@ -75,54 +75,6 @@ const app: ShaderModule = { } }; -// 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];