Add more substitutions
This commit is contained in:
parent
4369cf1770
commit
79bb7a64a2
1 changed files with 23 additions and 11 deletions
|
|
@ -13,6 +13,7 @@ export class UniformArrayAutoScalingProgram implements IProgram {
|
|||
private gl: WebGL2RenderingContext,
|
||||
private vertexShaderSource: string,
|
||||
private fragmentShaderSource: string,
|
||||
private substitutions: { [name: string]: any },
|
||||
private options: {
|
||||
getValueFromUniforms: (values: { [name: string]: any }) => number;
|
||||
uniformArraySizeName: string;
|
||||
|
|
@ -63,6 +64,7 @@ export class UniformArrayAutoScalingProgram implements IProgram {
|
|||
this.fragmentShaderSource,
|
||||
{
|
||||
[this.options.uniformArraySizeName]: Math.floor(arraySize).toString(),
|
||||
...this.substitutions,
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue