Fix uncleared uniforms bug

This commit is contained in:
schmelczerandras 2020-10-02 11:23:33 +02:00
parent 374796f398
commit 81eb0220d2
5 changed files with 20 additions and 2 deletions

View file

@ -52,6 +52,8 @@ export interface DrawableDescriptor {
*
* For each step, a shader will be generated. And at runtime the closes matching
* shader will be used to render a given part of the scene.
*
* Must contain 0 as a value.
*/
shaderCombinationSteps: Array<number>;

View file

@ -33,6 +33,7 @@ export abstract class Drawable {
*/
protected abstract getObjectToSerialize(transform2d: mat2d, transform1d: number): any;
/** @internal */
public serializeToUniforms(
uniforms: any,
transform2d: mat2d,