diff --git a/package.json b/package.json index 0c6ac8f..dff39a7 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,9 @@ "author": "Julian Niessner", "license": "ISC", "devDependencies": { - "@types/seedrandom": "^2.4.28", "browserify": "^16.5.0", "typescript": "^3.7.5" }, "dependencies": { - "seedrandom": "^3.0.5" } } diff --git a/src/main.ts b/src/main.ts index 57b169d..44b91bc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,6 +9,13 @@ function main() { return; } + let vertices = [ -0.5, -0.5, 0.0, + 0.5, -0.5, 0.0, + 0.0, 0.5, 0.0]; + + console.log(vertices); + + // Setze clear color auf schwarz, vollständig sichtbar gl.clearColor(0.0, 1.0, 0.0, 1.0); // Lösche den color buffer mit definierter clear color diff --git a/tsconfig.json b/tsconfig.json index ff23f80..7a38811 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ // "declaration": true, /* Generates corresponding '.d.ts' file. */ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./build/", /* Redirect output structure to the directory. */ // "rootDir": "./src/", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */