Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b10cc4c

Browse files
[Impeller] Fix a misspelling and name mismatch in a shader test fixture (#50983)
1 parent 8814d65 commit b10cc4c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

impeller/fixtures/box_fade.frag

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ uniform FrameInfo {
99
}
1010
frame_info;
1111

12-
in vec2 interporlated_texture_coordinates;
12+
in vec2 interpolated_texture_coordinates;
1313

1414
out vec4 frag_color;
1515

1616
uniform sampler2D contents1;
1717
uniform sampler2D contents2;
1818

1919
void main() {
20-
vec4 tex1 = texture(contents1, interporlated_texture_coordinates);
21-
vec4 tex2 = texture(contents2, interporlated_texture_coordinates);
20+
vec4 tex1 = texture(contents1, interpolated_texture_coordinates);
21+
vec4 tex2 = texture(contents2, interpolated_texture_coordinates);
2222
frag_color = mix(
2323
tex1, tex2,
2424
clamp(frame_info.cursor_position.x / frame_info.window_size.x, 0.0, 1.0));

impeller/fixtures/box_fade.vert

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ uniform_buffer;
1010
in vec3 vertex_position;
1111
in vec2 texture_coordinates;
1212

13-
out vec2 interporlated_texture_coordinates;
13+
out vec2 interpolated_texture_coordinates;
1414

1515
void main() {
1616
gl_Position = uniform_buffer.mvp * vec4(vertex_position, 1.0);
17-
interporlated_texture_coordinates = texture_coordinates;
17+
interpolated_texture_coordinates = texture_coordinates;
1818
}

impeller/fixtures/texture.frag

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
in vec2 interporlated_texture_coordinates;
5+
in vec2 interpolated_texture_coordinates;
66

77
out vec4 frag_color;
88

99
uniform sampler2D texture_contents;
1010

1111
void main() {
12-
frag_color = texture(texture_contents, interporlated_texture_coordinates);
12+
frag_color = texture(texture_contents, interpolated_texture_coordinates);
1313
}

0 commit comments

Comments
 (0)