Add frame buffers
This commit is contained in:
parent
066314ede8
commit
582979d3ed
13 changed files with 309 additions and 102 deletions
|
|
@ -59,6 +59,19 @@ export class FragmentShaderOnlyProgram {
|
|||
type: glUniform.type,
|
||||
});
|
||||
}
|
||||
|
||||
console.log(this.uniforms);
|
||||
|
||||
this.uniforms.map((u1) => {
|
||||
const isSingle =
|
||||
this.uniforms.filter((u2) => u2.name.includes(u1.name[0])).length == 1;
|
||||
if (u1.name.includes('0') && isSingle) {
|
||||
u1.name = u1.name.slice(0, -1);
|
||||
}
|
||||
return u1;
|
||||
});
|
||||
|
||||
console.log(this.uniforms);
|
||||
}
|
||||
|
||||
private createProgram(fragmentShaderSource: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue