Skip to content

Commit e3b2829

Browse files
committed
Fix spritelist_interaction_visualize_dist
1 parent 0796a7e commit e3b2829

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arcade/examples/gl/spritelist_interaction_visualize_dist.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ def __init__(self):
4949
#version 330
5050
5151
// Sprite positions from SpriteList
52-
in vec3 in_pos;
52+
in vec4 in_pos;
5353
5454
// Output to geometry shader
5555
out vec3 v_position;
5656
5757
void main() {
5858
// This shader just forwards info to geo shader
59-
v_position = in_pos;
59+
v_position = in_pos.xyz;
6060
}
6161
""",
6262
geometry_shader="""
@@ -120,7 +120,7 @@ def on_draw(self):
120120
# use to run our shader/gpu program. It only requires that we
121121
# use correctly named input name(s). in_pos in this example
122122
# what will automatically map in the position buffer to the vertex shader.
123-
self.coins.geometry.render(self.program_visualize_dist, vertices=len(self.coins))
123+
self.coins.data.geometry.render(self.program_visualize_dist, vertices=len(self.coins))
124124
arcade.draw_sprite(self.player)
125125

126126
# Visualize the interaction radius

0 commit comments

Comments
 (0)