Add textures

This commit is contained in:
schmelczerandras 2020-10-04 10:48:26 +02:00
parent 5723b91b32
commit 7bfad8711b
25 changed files with 407 additions and 104 deletions

View file

@ -20,8 +20,8 @@ export default abstract class Program implements IProgram {
public async initialize(
[vertexShaderSource, fragmentShaderSource]: [string, string],
substitutions: { [name: string]: string },
compiler: ParallelCompiler
compiler: ParallelCompiler,
substitutions: { [name: string]: string } = {}
): Promise<void> {
substitutions = { ...substitutions };