Skip to content

Commit 3ebe0ab

Browse files
committed
Fix spritelist_interaction_visualize_dist_los_trans
1 parent 8db3515 commit 3ebe0ab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arcade/examples/gl/spritelist_interaction_visualize_dist_los_trans.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ def __init__(self):
8080
#version 330
8181
8282
// Sprite positions from SpriteList
83-
in vec3 in_pos;
83+
in vec4 in_pos;
8484
8585
// Output to geometry shader
8686
out vec3 v_position;
8787
8888
void main() {
8989
// This shader just forwards info to geo shader
90-
v_position = in_pos;
90+
v_position = in_pos.xyz;
9191
}
9292
""",
9393
geometry_shader="""
@@ -183,7 +183,7 @@ def on_draw(self):
183183
# use to run our shader/gpu program. It only requires that we
184184
# use correctly named input name(s). in_pos in this example
185185
# what will automatically map in the position buffer to the vertex shader.
186-
self.coins.geometry.transform(
186+
self.coins.data.geometry.transform(
187187
self.program_select_sprites,
188188
self.result_buffer,
189189
vertices=len(self.coins),

0 commit comments

Comments
 (0)