From 8135465779368bc4fdf5af0bb3d0fcd64d72fe67 Mon Sep 17 00:00:00 2001 From: Google DeepMind Date: Mon, 13 Apr 2026 17:30:26 -0700 Subject: [PATCH] Remove usages of `texture2D` and other FL0 features that are obsolete due to FL0 now going through `spirv-cross`. This is an early upload of https://github.com/google/filament/pull/9867 and necessary material changes Original PR commits: FL0 materials are always compile via spirv-cross postfx materials now support sRGB emulation in FL0 PiperOrigin-RevId: 899262890 Change-Id: I52c002d60790d84269674c1f0d0c5f7d6a58000c --- src/experimental/filament/assets/unlit_ui.mat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/experimental/filament/assets/unlit_ui.mat b/src/experimental/filament/assets/unlit_ui.mat index 2b4f402e..80d308a2 100644 --- a/src/experimental/filament/assets/unlit_ui.mat +++ b/src/experimental/filament/assets/unlit_ui.mat @@ -36,7 +36,7 @@ fragment { prepareMaterial(material); vec2 uv = getUV0(); uv.y = 1.0 - uv.y; - vec4 tex_color = texture2D(materialParams_glyph, uv); + vec4 tex_color = texture(materialParams_glyph, uv); material.baseColor = getColor() * tex_color; material.baseColor.rgb *= material.baseColor.a; }