Skip to content

Commit 8135465

Browse files
Google DeepMindcopybara-github
authored andcommitted
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 google/filament#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
1 parent 412cee2 commit 8135465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/experimental/filament/assets/unlit_ui.mat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fragment {
3636
prepareMaterial(material);
3737
vec2 uv = getUV0();
3838
uv.y = 1.0 - uv.y;
39-
vec4 tex_color = texture2D(materialParams_glyph, uv);
39+
vec4 tex_color = texture(materialParams_glyph, uv);
4040
material.baseColor = getColor() * tex_color;
4141
material.baseColor.rgb *= material.baseColor.a;
4242
}

0 commit comments

Comments
 (0)