Skip to content

Commit 70b8d7c

Browse files
tidy examples
1 parent eb68dec commit 70b8d7c

12 files changed

+120
-6
lines changed

examples/extra/camera.py.requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/extra/camera.py renamed to examples/extra/extra_camera.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# python3 -m pip install pyglm
2+
13
from math import sin, cos
24
import glm
35
from raylib import rl, ffi

examples/extra/flow-field.py renamed to examples/extra/extra_flow_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
RenderTexture example
33
44
Run with:
5-
5+
python3 -m pip install pyglm
66
python3 flow-field
77
flow-field bees
88
"""

examples/extra/flow-field.py.requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

examples/shaders/shaders_custom_uniform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
angle -= 0.002
7979
camera.position.x = math.sin(angle) * 30.0
8080
camera.position.z = math.cos(angle) * 30.0
81-
rl.UpdateCamera(camera) #// Update camera
81+
rl.UpdateCamera(camera, rl.CAMERA_PERSPECTIVE) #// Update camera
8282

8383
swirl.x = rl.GetMouseX()
8484
swirl.y = screenHeight - rl.GetMouseY()

examples/shaders/shaders_fog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
a += 0.01
6262
camera.position.x = math.sin(a) * 6
6363
camera.position.z = math.cos(a) * 6
64-
rl.UpdateCamera(camera)
64+
rl.UpdateCamera(camera, rl.CAMERA_PERSPECTIVE)
6565

6666
lightSystem.update(camera.position)
6767

File renamed without changes.

0 commit comments

Comments
 (0)