Skip to content

Commit

Permalink
Upd docs
Browse files Browse the repository at this point in the history
  • Loading branch information
4eb0da committed May 11, 2024
1 parent 753f8c9 commit e484119
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,20 @@ class ModelRenderer {
setTextureImage (path: string, img: HTMLImageElement, flags: TextureFlags): void;
setTextureImageData (path: string, imageData: ImageData[], flags: TextureFlags): void;
setTextureCompressedImage (path: string, format: number, imageData: ArrayBuffer, ddsInfo: DdsInfo, flags: TextureFlags): void;
setCamera (cameraPos: vec3, cameraQuat: quat): void
setCamera (cameraPos: vec3, cameraQuat: quat): void;
setLightPosition (lightPos: vec3): void;
setLightColor (lightColor: vec3): void;
// Sets current animation
setSequence (index: number): void;
setTeamColor (color: vec3): void;
update (delta: number): void;
render (mvMatrix: mat4, pMatrix: mat4, opts?: { wireframe: boolean }): void;
render (mvMatrix: mat4, pMatrix: mat4, opts?: {
wireframe: boolean;
shadowMapTexture?: WebGLTexture;
shadowMapMatrix?: mat4;
shadowBias?: number;
shadowSmoothingStep?: number;
}): void;
renderSkeleton (mvMatrix: mat4, pMatrix: mat4, nodes: string[] | null): void;
}
```
Expand Down

0 comments on commit e484119

Please sign in to comment.