8000 GL example fixes by einarf · Pull Request #2718 · pythonarcade/arcade · GitHub
[go: up one dir, main page]

Skip to content

GL example fixes #2718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 9, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files. Retry
Loading
Diff view
Diff view
Prev Previous commit
Fix spritelist_interaction_visualize_dist
  • Loading branch information
einarf committed Jun 9, 2025
commit e3b282955e8091fbfab7642c7e1ad17a8eac7fce
6 changes: 3 additions & 3 deletions arcade/examples/gl/spritelist_interaction_visualize_dist.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ def __init__(self):
#version 330

// Sprite positions from SpriteList
in vec3 in_pos;
in vec4 in_pos;

// Output to geometry shader
out vec3 v_position;

void main() {
// This shader just forwards info to geo shader
v_position = in_pos;
v_position = in_pos.xyz;
}
""",
geometry_shader="""
Expand Down Expand Up @@ -120,7 +120,7 @@ def on_draw(self):
# use to run our shader/gpu program. It only requires that we
# use correctly named input name(s). in_pos in this example
# what will automatically map in the position buffer to the vertex shader.
self.coins.geometry.render(self.program_visualize_dist, vertices=len(self.coins))
self.coins.data.geometry.render(self.program_visualize_dist, vertices=len(self.coins))
arcade.draw_sprite(self.player)

# Visualize the interaction radius
Expand Down
Loading
0