Skip to content

Commit

Permalink
fix(doc): fix TextureCube order (#388) (#421)
Browse files Browse the repository at this point in the history
* fix(doc): fix TextureCube order

* Update Res.ts

* Update BitmapTextureCube.ts
  • Loading branch information
lslzl3000 authored Jul 18, 2024
1 parent 367f469 commit 7e4e15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/assets/Res.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class Res {
/**
* load texture data from array of web url.
* make sure there are six images in a group,
* and the order is: nx, px, py, ny, nz, pz
* and the order is: [+X, -X, +Y, -Y, +Z, -Z]
* @param urls
*/
public async loadTextureCubeMaps(urls: string[]) {
Expand Down
2 changes: 1 addition & 1 deletion src/textures/BitmapTextureCube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class BitmapTextureCube extends TextureCube {
/**
* load texture data from array of web url.
* make sure there are six images in a group,
* and the order is: nx, px, py, ny, nz, pz
* and the order is: [+X, -X, +Y, -Y, +Z, -Z]
* @param urls array of image url
*/
public async load(urls: string[]) {
Expand Down

0 comments on commit 7e4e15d

Please sign in to comment.