diff --git a/types/core/Program.d.ts b/types/core/Program.d.ts index e1575b7..2c63999 100644 --- a/types/core/Program.d.ts +++ b/types/core/Program.d.ts @@ -4,6 +4,7 @@ export interface ProgramOptions { vertex: string; fragment: string; uniforms: Record; + transparent: boolean; cullFace: GLenum | false | null; frontFace: GLenum; @@ -39,6 +40,8 @@ export class Program { blendFunc: BlendFunc; blendEquation: BlendEquation; + vertexShader: WebGLShader; + fragmentShader: WebGLShader; program: WebGLProgram; uniformLocations: Map; attributeLocations: Map; @@ -46,7 +49,9 @@ export class Program { constructor(gl: OGLRenderingContext, options?: Partial); - setBlendFunc(src: GLenum, dst: GLenum, srcAlpha?: GLenum, dstAlpha?: GLenum): void; + setShaders(options: { vertex: string; fragment: string }): void; + + setBlendFunc(src: GLenum, dst: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; setBlendEquation(modeRGB: GLenum, modeAlpha: GLenum): void;