step_03.py Diff

step_01.py to step_03.py diff
--- /home/docs/checkouts/readthedocs.org/user_builds/arcade-library/checkouts/2.6.0/doc/tutorials/raycasting/step_01.py
+++ /home/docs/checkouts/readthedocs.org/user_builds/arcade-library/checkouts/2.6.0/doc/tutorials/raycasting/step_03.py
@@ -43,7 +43,7 @@
 
     def load_shader(self):
         # Where is the shader file? Must be specified as a path.
-        shader_file_path = Path("step_01.glsl")
+        shader_file_path = Path("step_03.glsl")
 
         # Size of the window
         window_size = self.get_size()
@@ -102,12 +102,20 @@
         # Draw the walls
         self.wall_list.draw()
 
+        self.channel1.use()
+        # Draw the bombs
+        self.bomb_list.draw()
+
         # Select this window to draw on
         self.use()
         # Clear to background color
         self.clear()
         # Run the shader and render to the window
+        self.shadertoy.program['lightPosition'] = self.player_sprite.position
+        self.shadertoy.program['lightSize'] = 500
         self.shadertoy.render()
+        # Draw the player
+        self.player_list.draw()
 
     def on_key_press(self, key, modifiers):
         """Called whenever a key is pressed. """