New examples from @chriscamacho (#23)

* complete fog example
as both fog and basic lighting need the light system it made sense
to seperate it out, there are a few functions from raymath
int rlmath.py

* added shaders custom uniform

* added shaders_texture_waves.py

* added shaders_texture_drawing.py

* bug fix - unwanted transparent effect!

* complete fog example
as both fog and basic lighting need the light system it made sense
to seperate it out, there are a few functions from raymath
int rlmath.py

* added shaders custom uniform

* added shaders_texture_waves.py

* initial commit still WIP

* updated raylib

* undo all changes in this branch except for the example updates

* remove local raylib-c

Co-authored-by: codifies <nospam@antispam.com>
This commit is contained in:
Richard Smith 2020-11-15 20:07:05 +00:00 committed by GitHub
parent 16aec6a0e3
commit 8824449bc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 120 additions and 912 deletions

View file

@ -1,7 +1,15 @@
# just a few functions from raymath
from raylib.dynamic import raylib as rl, ffi
#from raylib.dynamic import raylib as rl, ffi
from raylib.static import rl, ffi
import math
#<<<<<<< HEAD
#<<<<<<< HEAD
#<<<<<<< HEAD
#=======
#>>>>>>> 2e2e575 (added shaders custom uniform)
#=======
#>>>>>>> 1775ffc4b093c881ee44a8027b4143add066d738
PI = 3.14159265358979323846
DEG2RAD = (PI/180.0)
RAD2DEG = (180.0/PI)
@ -19,6 +27,14 @@ def Lerp(start: float, end: float, amount: float):
def Vector2Zero():
return ffi.new("struct Vector2 *",[ 0, 0])
#<<<<<<< HEAD
#<<<<<<< HEAD
#=======
#>>>>>>> ffe4403 (complete fog example)
#=======
#>>>>>>> 2e2e575 (added shaders custom uniform)
#=======
#>>>>>>> 1775ffc4b093c881ee44a8027b4143add066d738
def Vector3Zero():
return ffi.new("struct Vector3 *",[ 0, 0, 0])