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:
parent
16aec6a0e3
commit
8824449bc1
27 changed files with 120 additions and 912 deletions
|
@ -1,5 +1,39 @@
|
|||
#!/usr/bin/env python3
|
||||
#<<<<<<< HEAD
|
||||
#<<<<<<< HEAD
|
||||
|
||||
#=======
|
||||
# /*******************************************************************************************
|
||||
# *
|
||||
# * raylib [shaders] example - basic lighting
|
||||
# *
|
||||
# * NOTE: This example requires raylib OpenGL 3.3 or ES2 versions for shaders support,
|
||||
# * OpenGL 1.1 does not support shaders, recompile raylib to OpenGL 3.3 version.
|
||||
# *
|
||||
# * NOTE: Shaders used in this example are #version 330 (OpenGL 3.3).
|
||||
# *
|
||||
# * This example has been created using raylib 2.5 (www.raylib.com)
|
||||
# * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
|
||||
# *
|
||||
# * Example contributed by Chris Camacho (@codifies) and reviewed by Ramon Santamaria (@raysan5)
|
||||
# *
|
||||
# * Chris Camacho (@codifies - http://bedroomcoders.co.uk/) notes:
|
||||
# *
|
||||
# * This is based on the PBR lighting example, but greatly simplified to aid learning...
|
||||
# * actually there is very little of the PBR example left!
|
||||
# * When I first looked at the bewildering complexity of the PBR example I feared
|
||||
# * I would never understand how I could do simple lighting with raylib however its
|
||||
# * a testement to the authors of raylib (including rlights.h) that the example
|
||||
# * came together fairly quickly.
|
||||
# *
|
||||
# * Copyright (c) 2019 Chris Camacho (@codifies) and Ramon Santamaria (@raysan5)
|
||||
# *
|
||||
# *
|
||||
# ********************************************************************************************/
|
||||
#>>>>>>> 2e2e575 (added shaders custom uniform)
|
||||
#=======#
|
||||
#
|
||||
#>>>>>>> 1775ffc4b093c881ee44a8027b4143add066d738
|
||||
|
||||
from raylib.dynamic import raylib as rl, ffi
|
||||
from raylib.colors import *
|
||||
|
|
Reference in a new issue