Skip to content

Commit 0796a7e

Browse files
committed
Fix spritelist_interaction_visualize_dist_los
1 parent 3ebe0ab commit 0796a7e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arcade/examples/gl/spritelist_interaction_visualize_dist_los.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ def __init__(self):
7272
#version 330
7373
7474
// Sprite positions from SpriteList
75-
in vec3 in_pos;
75+
in vec4 in_pos;
7676
7777
// Output to geometry shader
7878
out vec3 v_position;
7979
8080
void main() {
8181
// This shader just forwards info to geo shader
82-
v_position = in_pos;
82+
v_position = in_pos.xyz;
8383
}
8484
""",
8585
geometry_shader="""
@@ -178,7 +178,7 @@ def on_draw(self):
178178
# use to run our shader/gpu program. It only requires that we
179179
# use correctly named input name(s). in_pos in this example
180180
# what will automatically map in the position buffer to the vertex shader.
181-
self.coins.geometry.render(self.program_visualize_dist, vertices=len(self.coins))
181+
self.coins.data.geometry.render(self.program_visualize_dist, vertices=len(self.coins))
182182
arcade.draw_sprite(self.player)
183183

184184
# Visualize the interaction radius

0 commit comments

Comments
 (0)