Commit Graph

18 Commits (5d5e8783f5f3db5188ae7af1fec56dc7d60e6802)

Author SHA1 Message Date
Hleb Valoshka 5d5e8783f5 Optimize uniforms usage 2020-08-03 19:47:36 +03:00
Hleb Valoshka bd7f9ebc9b Use libepoxy instead of GLEW
Unlike GLEW libepoxy supports OpenGL ES and better handles cases with
functions provided by different extensions, e.g. the same functions
provided by vendor/EXT/ARB/core.
2020-03-26 11:24:56 +03:00
Hleb Valoshka 5f9fa3c2d4 Add Mat3/4ShaderParameter classes 2019-07-02 10:29:31 +03:00
Hleb Valoshka 9745b125f3 Support for static shaders in ShaderManager 2019-06-21 13:57:04 +03:00
Hleb Valoshka 73a869c137 Use core OpenGL2 functions instead of their ARB versions 2018-10-07 20:45:01 +03:00
Hleb Valoshka b082d5f47f Automatically convert to c++11 using clan-tidy
+ manual cleanups
2018-09-22 23:42:02 +03:00
Hleb Valoshka 882e4ecf28 fix whitespaces and indents
trailing spaces are removed
tabs are replaced with 4 spaces

# Conflicts:
#	src/celengine/cmdparser.cpp
#	src/celengine/command.cpp
#	src/celestia/celestiacore.cpp
#	src/celestia/celestiacore.h
#	src/celestia/qt/qtappwin.cpp
#	src/celestia/qt/qtglwidget.cpp
#	src/celestia/win32/winmain.cpp
2018-09-22 23:41:57 +03:00
Chris Laurel f5d97be5c9 More GLEW-related cleanup.
- Added missing GLEW_STATIC define to VC++ project file
- Fixed Qt4 build to use GLEW
- Stripped out more references to old glext functions
- Fixed miscellaneous compiler warnings.
2009-08-15 00:48:42 +00:00
Chris Laurel 157b720854 Removed more code that used the old vector classes. 2009-08-05 21:13:29 +00:00
Chris Laurel 5de792f64a Eigenized lighting and shadow calculations in renderer. 2009-07-18 05:50:56 +00:00
Chris Laurel 34d762d8e9 Fixed compiler warnings on Mac OS X, mostly related to different type of
GLhandleARB on that platform.
2009-01-29 01:14:16 +00:00
Chris Laurel 9294531f5f Fixed small memory leak in glshader.cpp. 2006-09-22 05:58:02 +00:00
Chris Laurel 19a5e12f11 GLSL shader fixes:
- Changed int constants to floats so shaders compile on ATI drivers
- Dump error messages to shaders.log along with shader source
- When shader compilation fails, subsitute an error shader that outputs red pixels
2004-10-27 09:44:41 +00:00
Christophe Teyssier 33011942bb Fixed compilation error with gcc 3.4.x 2004-10-15 23:38:00 +00:00
Chris Laurel 6f8031d387 Turned on OpenGL 2.0 / GLSL render path. 2004-10-15 09:55:12 +00:00
Chris Laurel 62fdac717f Continued work on GLSL shaders: added support for up to four light sources, specular reflection, and specular mask. 2004-10-13 16:03:01 +00:00
Chris Laurel af2d2e6195 Added module shadermanager.cpp, which uses GLSL and shader metaprogramming to build shaders for all possible combinations of rendering state (light count, specular, normal maps, etc.) 2004-10-12 18:12:34 +00:00
Chris Laurel c03e533980 Added GLShader class, a C++ wrapper around OpenGL 2.0's high level shading language objects. 2004-10-11 02:18:58 +00:00