Commit Graph

42 Commits

Author SHA1 Message Date
fbdea30015 Patched bounding box renderer to work again- in immediate mode renderer, more work on lighting rework for modern renderer 2020-05-14 09:54:08 -05:00
dae950c72a Restructured deferred lighting/rendering 2020-05-12 15:19:05 -05:00
fa2873bb8f Fixed model with texture and texture-less objects having texture-less objects renderer 'black' due to having hasTexture incorrectly set for shader 2020-05-11 23:05:34 -05:00
f72a8d4c35 Added support for renderering multiple textures per Model 2020-05-11 22:49:25 -05:00
bc695df4a1 Refactored ModelCache into a module, misc. fixes due to change. 2020-05-07 21:45:18 -05:00
8d956131d1 Made 'use_shaders' debug option work 2020-05-06 21:32:55 -05:00
c53d42166b Use glLineWidth for wireframe rendering, use LoadingState for MapEditor 2020-05-03 09:49:57 -05:00
bb8e210362 Added canvas_size_changed 'event' to Renderer and OpenGLRenderer 2020-03-25 13:27:00 -05:00
15e5d0a5e1 Framebuffer rendering on quad is now working! 😂 2020-03-25 13:06:40 -05:00
87ae77a9cb Updates 2020-03-25 10:11:56 -05:00
d293772690 Initial work on using framebuffer from GBuffer 2020-03-25 09:18:06 -05:00
d839811cfd Fixed reloading shader which failed to compile at start up but succeeded at runtime caused crash due to Model expecting access to attribute location of shader inputs 2020-03-24 10:32:32 -05:00
578c00673d Added command to reload shaders at runtime, added support for shared scripts to Manifest, lights are now loadable from MapParser, misc changes. 2020-03-24 09:51:20 -05:00
2ad1385fb4 Fixed NVIDIA renderering errors, use 'flat in/out int integerValue' instead of 'in/out float integerValue' 2020-03-23 18:45:25 -05:00
87fcc3a05c Fixed lighting artifacts caused by untransformed normals, added 'Scene' for holding objects for rendering, added turn table models to menus using a scene, misc other changes. 2020-03-23 11:48:44 -05:00
f32dbfabeb Set shader lights once per frame instead of per entity 2020-03-22 17:46:50 -05:00
0d1d7ff6bc Fixed modern opengl renderer not renderering model textures, framebuffer can be used without crashing, model uv coordinates are now in buffer, minor rendering optimization 2020-03-22 17:22:10 -05:00
35d6061198 Setup GBuffer for future deferred rendering 2020-03-22 14:56:22 -05:00
d6802c8756 Enabled wireframes for shader renderer 2020-01-30 22:54:59 -06:00
4f1b490600 Use persistent hash for config 2020-01-29 18:18:46 -06:00
e7b84bd123 Removed redundant glError? from Map class and renamed CommonMethods#glError? to #gl_error?, added debug settings for disabling shaders and whether to exit on opengl error 2020-01-27 22:19:07 -06:00
e4333a82b8 Fixed immediate mode lighting, improved-ish modern gl lighting 2019-12-09 11:48:54 -06:00
ff1d34deec Initital shader lighting support 2019-12-08 20:05:48 -06:00
af19166af2 Modern 'GL now renders properly, camera works as expected, added fallback to immediate mode if shader fails to compile. 2019-12-08 17:50:20 -06:00
e076ce8612 Stubbed out VBOs for model 2019-12-05 20:43:54 -06:00
6aeee41a71 Progress towards modern gl made 2019-12-05 17:23:02 -06:00
19f5a0cd9c Added Alternate Tank, go back to using glScalef for scaling models until shader based rendering is implemented, improved Map handling of scaling. 2019-09-25 20:59:19 -05:00
ee844f256f Renamed objects/ to game_objects/ removed redundant entities, added Map loader and test map, made LoadingState use Map for entity asset loading. 2019-09-25 10:09:05 -05:00
771b6a4247 Switched back to old model renderer while fixing vbo based renderer, set stats text shadow color to black, fixed tab completion showing empty list of available options when tab completion triggered 2019-08-12 21:27:04 -05:00
f11b091fe0 Renamed lighting shader to default, shoehorned in glsl 3.30 support for Intel on Linux, removed duplicate handleGlError methods, added OpenGL and GLU to Object namespace, removed redundant includes for OpenGL and GLU, VBO and VAO now render (all be it incorrectly) 2019-08-11 14:53:15 -05:00
185d760a83 Model is now able to push data into VBO 2019-08-10 13:36:37 -05:00
80a6389af4 Fix rendering error 2019-08-10 10:15:22 -05:00
a22a3f3f3c Moved constants into their own file, LoadingState now loads shaders and now shows 'Loading [model|shader] name...', tweaked player running speed, Player model is no longer rendered when in first person view, removed redundant ShaderManager 2019-08-10 09:40:31 -05:00
3eb34d023e Debug commands now affect game 2019-08-07 17:58:30 -05:00
2e69647ae3 Various tweaks 2019-02-26 18:43:42 -06:00
6191699d8b Replaced usage of with CommonMethods.window (which uses ), refactored InputMapper to match actions to keys and visa-versa, removed categories from InputMapper, moved input mappings from Camera and Player into InputMapper (for now.) 2019-02-22 14:55:18 -06:00
7b903fbdb9 Refactored GameObject to Entity, replaced @x,@y,@z with @position, added @velocity vector to Entity, bricked Player terrain interaction while authoring Axis Aligned Bounding Box Tree for CollisionManager to handle all collision interaction. Added PhysicsManager stub. 2019-02-20 10:49:56 -06:00
5843a9b0ae Count number of vertices instead of faces, added formatted_number to CommonMethods 2018-12-11 12:27:23 -06:00
82265394eb Improved shader error formatting, hide puts statements that are only useful in debug mode. 2018-12-11 11:56:53 -06:00
4d8638d81c Added shader support, removed unused debugging puts statements and fixed Gosu Font.draw deprecation warning. 2018-12-10 18:50:25 -06:00
7271c0e4a1 Fixed bounding box rendering! fixed AABB collision detection (was a bit weird), misc. tweaks and fixes. 2018-12-09 21:17:12 -06:00
a5b2ab7992 Split up Renderer into OpenGL and BoundBox renderers, rotate Player nameplate 180d 2018-09-20 09:47:09 -05:00