diff --git a/docs/webgl/tutorial_suzanne.html b/docs/webgl/tutorial_suzanne.html index b3e57fab67..bfaf97e97c 100644 --- a/docs/webgl/tutorial_suzanne.html +++ b/docs/webgl/tutorial_suzanne.html @@ -207,11 +207,11 @@ when the assets have finished downloading.
recreate the skybox using a higher-resolution texture. As a last step we unhide the renderable that was created in the app constructor.Filament.fetch([sky_large_url, albedo_url, roughness_url, metallic_url, normal_url, ao_url], () => {
- const albedo = this.engine.createTextureFromKtx(albedo_url, {srgb: true});
- const roughness = this.engine.createTextureFromKtx(roughness_url);
- const metallic = this.engine.createTextureFromKtx(metallic_url);
- const normal = this.engine.createTextureFromKtx(normal_url);
- const ao = this.engine.createTextureFromKtx(ao_url);
+ const albedo = this.engine.createTextureFromKtx1(albedo_url, {srgb: true});
+ const roughness = this.engine.createTextureFromKtx1(roughness_url);
+ const metallic = this.engine.createTextureFromKtx1(metallic_url);
+ const normal = this.engine.createTextureFromKtx1(normal_url);
+ const ao = this.engine.createTextureFromKtx1(ao_url);
const sampler = new Filament.TextureSampler(
Filament.MinFilter.LINEAR_MIPMAP_LINEAR,
diff --git a/docs/webgl/tutorial_suzanne.js b/docs/webgl/tutorial_suzanne.js
index a4bc0ba152..c02043ecec 100644
--- a/docs/webgl/tutorial_suzanne.js
+++ b/docs/webgl/tutorial_suzanne.js
@@ -33,13 +33,13 @@ class App {
});
Filament.fetch([sky_large_url, albedo_url, roughness_url, metallic_url, normal_url, ao_url],
() => {
- const albedo = this.engine.createTextureFromKtx(albedo_url, {
+ const albedo = this.engine.createTextureFromKtx1(albedo_url, {
srgb: true
});
- const roughness = this.engine.createTextureFromKtx(roughness_url);
- const metallic = this.engine.createTextureFromKtx(metallic_url);
- const normal = this.engine.createTextureFromKtx(normal_url);
- const ao = this.engine.createTextureFromKtx(ao_url);
+ const roughness = this.engine.createTextureFromKtx1(roughness_url);
+ const metallic = this.engine.createTextureFromKtx1(metallic_url);
+ const normal = this.engine.createTextureFromKtx1(normal_url);
+ const ao = this.engine.createTextureFromKtx1(ao_url);
const sampler = new Filament.TextureSampler(Filament.MinFilter.LINEAR_MIPMAP_LINEAR,
Filament.MagFilter.LINEAR, Filament.WrapMode.CLAMP_TO_EDGE);
this.matinstance.setTextureParameter('albedo', albedo, sampler);
diff --git a/web/docs/tutorial_suzanne.md b/web/docs/tutorial_suzanne.md
index bb7dbe3495..5ffc37bf7a 100644
--- a/web/docs/tutorial_suzanne.md
+++ b/web/docs/tutorial_suzanne.md
@@ -237,11 +237,11 @@ was created in the app constructor.
```js {fragment="fetch larger assets"}
Filament.fetch([sky_large_url, albedo_url, roughness_url, metallic_url, normal_url, ao_url], () => {
- const albedo = this.engine.createTextureFromKtx(albedo_url, {srgb: true});
- const roughness = this.engine.createTextureFromKtx(roughness_url);
- const metallic = this.engine.createTextureFromKtx(metallic_url);
- const normal = this.engine.createTextureFromKtx(normal_url);
- const ao = this.engine.createTextureFromKtx(ao_url);
+ const albedo = this.engine.createTextureFromKtx1(albedo_url, {srgb: true});
+ const roughness = this.engine.createTextureFromKtx1(roughness_url);
+ const metallic = this.engine.createTextureFromKtx1(metallic_url);
+ const normal = this.engine.createTextureFromKtx1(normal_url);
+ const ao = this.engine.createTextureFromKtx1(ao_url);
const sampler = new Filament.TextureSampler(
Filament.MinFilter.LINEAR_MIPMAP_LINEAR,
diff --git a/web/filament-js/filament.d.ts b/web/filament-js/filament.d.ts
index 0a51e7a7f7..b4248366ff 100644
--- a/web/filament-js/filament.d.ts
+++ b/web/filament-js/filament.d.ts
@@ -111,7 +111,7 @@ export class driver$PixelBufferDescriptor {
getBytes(): ArrayBuffer;
}
-// Clients should use createTextureFromKtx/ImageFile helper functions if low level control is not needed
+// Clients should use createTextureFromKtx1/ImageFile helper functions if low level control is not needed
export class Texture$Builder {
public width(width: number): Texture$Builder;
public height(height: number): Texture$Builder;