raysan5
4dae3385c3
Record draw call for batch processing
Just started working on this, not sure if it would be available for
raylib 1.5
8 роки тому
raysan5
68a02e567d
Avoid external variable whiteTexture
To get it, use GetDefaultTexture()
8 роки тому
victorfisac
7b07b68bfd
Adapt standard shader to GL ES 2.0
Some shader calculations are now pre-calculated because some math
functions doesn't exist in glsl 110.
8 роки тому
Ray
99ee26b001
Review const char *
8 роки тому
Ray
ee795150fa
Updated some code
8 роки тому
raysan5
058af472ea
Converted GLAD to header only
8 роки тому
Ray
9281e477eb
Embed standard shader into raylib
8 роки тому
Ray
1bcf500eca
Review fallback mechanism
8 роки тому
Ray
522af9f477
Fallback to default shader
8 роки тому
Ray
29d505c98e
Reorganize external libraries - BREAKING CHANGE -
Moved all external libraries used by raylib to external folder inside
raylib src. Makefile has already been update and also the different
includes in raylib modules.
8 роки тому
Ray
72eb2632cc
Corrected compilation bug on OpenGL 1.1
8 роки тому
raysan5
0bc71d84f8
Added functions to customize internal matrix
Internal modelview and projection matrices can be replaced before
drawing.
8 роки тому
raysan5
c286bea8e1
Remove GLEW dependency
8 роки тому
Ray
17878550b1
Review heades usage
This is a first step toward a bigger project. Some modules could be
ported to header-only to be used as standalone.
9 роки тому
raysan5
897179a06c
Corrected some issues on OpenGL 1.1
9 роки тому
raysan5
d17a0cee1a
Review text formatting (spacing, tabs...)
9 роки тому
raysan5
302ec438dd
Removed colTint, tint color is colDiffuse
Tint color could be applied to colDiffuse... but what's the best way?
Replace it? Multiply by? A point to think about...
9 роки тому
raysan5
cac2a66deb
Improved library consistency
Functions renamed to improve library consistency
9 роки тому
Ray
caa7bc366b
Reviewed DrawLight() function and some tweaks
9 роки тому
victorfisac
b0a0c5d431
Added tint color attribute to material data type
It tints all fragments, ignores lighting. Useful for some features like
feedback (damage color, ...).
9 роки тому
victorfisac
f2d61d4043
Remove normal depth
Scaling normal depth (y axis) makes disappear the specular of
fragments... So I think it can be removed, it is not a very
useful/important attribute.
9 роки тому
victorfisac
64f6c74c9a
Add normal and specular maps to draw model process
9 роки тому
raysan5
ea5b00528b
Improved render to texture
Support render texture size different than screen size
9 роки тому
raysan5
d53b6f4381
Renamed shader variables (more generic names)
Now shader maps use a generic naming convention for any kind of texture
maps (not only diffuse, normal or specular). Useful for custom shaders.
9 роки тому
victorfisac
dcd6942ed1
Fix small bug and spacing
9 роки тому
victorfisac
c320a21f2b
Add standard lighting (2/3)
- 3 light types added (point, directional, spot).
- DrawLights() function added using line shapes.
- Standard lighting example added.
- Removed useless struct variables from material and light.
- Fixed light attributes dynamic locations errors.
- Standard vertex and fragment shaders temporally added until rewrite it
as char pointers in rlgl.
TODO:
- Add normal and specular maps calculations in standard shader.
- Add control structs to handle which attributes needs to be calculated
(textures, specular...).
- Adapt standard shader to version 110.
- Rewrite standard shader as char pointers in rlgl.
9 роки тому
victorfisac
30c8058fca
Add standard lighting (1/3)
- Ambient and lambert lighting added.
- Ambient and diffuse colors linked to standard shader.
- Single light linked to standard shader.
- LoadStandardMaterial() and depending functions added.
9 роки тому
raysan5
6dac1efefe
Comented buggy code to avoid problems...
...on model drawing
9 роки тому
raysan5
dcf5f45f68
Add lighting system -IN PROGRESS-
Improved materials
9 роки тому
raysan5
7d1d9ff143
Support DYNAMIC_DRAW mesh loading
9 роки тому
raysan5
8bbbe8cd76
Corrected namings
9 роки тому
raysan5
037edbaa13
Reorganize data for consistency
9 роки тому
raysan5
075f51e0a3
Simplified internal (default) dynamic buffers
9 роки тому
raysan5
6acfda599e
Support indexed mesh data on OpenGL 1.1 path
Keep asking myself why I maintain this rendering path... -___-
9 роки тому
raysan5
1ddf594d15
Added support for indexed mesh data
9 роки тому
Ray
c85cd29049
Added defines for default shader names
9 роки тому
Ray
f7d4951165
Improved vertex attribs support for models
9 роки тому
raysan5
0bcb873cbb
Improved mesh support
Depending on mesh data, it can be loaded and default vertex attribute
location points are set, including colors, tangents and texcoords2
9 роки тому
raysan5
eeb151586f
Corrected issues with OpenGL 1.1 backend
9 роки тому
raysan5
7ab008878a
Library redesign to accomodate materials system
9 роки тому
raysan5
8301980ba8
Clean up and consistency review
- Renamed some functions for consistency (default buffers)
- Removed mystrdup() function (implemented inline)
- Renamed TextFileRead() to ReadTextFile()
9 роки тому
Ray
2646ed0393
Removed debug functions
9 роки тому
Ray
0e6d1cb272
Working on materials system...
9 роки тому
Ray
1fb874cdc5
Check for WebGL/Webkit extensions
Improve DXT-ETC1 support on HTML5
9 роки тому
raysan5
2e5d898443
Corrected bug with old FBO struct
9 роки тому
raysan5
284eaf1576
Use Depth Texture on OpenGL 3.3
9 роки тому
raysan5
aa22d97983
Simplified texture flip and added comments
9 роки тому
raysan5
0133917bf9
Correct detail
9 роки тому
Ray
b6cec214bd
Unified internal shader to only one
Only defaultShader required, set default value for vertex color
attribute if not enabled and fragColor uniform
9 роки тому
raysan5
a66c8531d6
Some code simplifications
9 роки тому