Lioncash
75e5d0a6a0
gl_rasterizer: Fix compilation for debug builds
10 years ago
Alexander Laties
0a31e373f1
fixup simple type conversions where possible
10 years ago
Emmanuel Gil Peyrot
aa4d4ff23c
Frontends, VideoCore: Move glad initialisation to the frontend
On SDL2 this allows it to use SDL_GL_GetProcAddress() instead of the
default function loader, and fixes a crash when using apitrace with an
EGL context.
On Qt we will need to migrate from QGLWidget to QOpenGLWidget and
QOpenGLContext before we can use gladLoadGLLoader() instead of
gladLoadGL(), since the former doesn’t expose a function loader.
10 years ago
Jannik Vogel
f74652d2fe
Pica: Use a union for PicaShaderConfig
10 years ago
Jannik Vogel
5fc8eb227a
Pica: Add TevStageConfigRaw to PicaShaderConfig (MSVC workaround)
10 years ago
Jannik Vogel
f3f7018c9e
Pica: Make PicaShaderConfig trivially_copyable and clear it before use
10 years ago
Jannik Vogel
5ec1140f8b
OpenGL: Don't copy const_color (Reverts #1745 )
10 years ago
Jannik Vogel
7e0d6903ff
OpenGL: Copy TevStageConfig using a loop. Fixes bug: const_color not copied
10 years ago
Jannik Vogel
aab41604f7
OpenGL: border_color was never set. Fixed. ( #1740 )
10 years ago
Emmanuel Gil Peyrot
691a42fe98
VideoCore: Run include-what-you-use and fix most includes.
10 years ago
Yuri Kunde Schlesner
e3a8292495
Common: Remove section measurement from profiler ( #1731 )
This has been entirely superseded by MicroProfile. The rest of the code
can go when a simpler frametime/FPS meter is added to the GUI.
10 years ago
tfarley
562f36a144
HWRasterizer: reorder declarations to match defs
10 years ago
tfarley
3268cab26b
HWRasterizer: sync specular uniform for new shaders
10 years ago
tfarley
22f3a7e94c
HWRasterizer: Texture forwarding
10 years ago
Jannik Vogel
0ad050f85d
OpenGL: Implement color combiner Operation::Dot3_RGB
10 years ago
Jannik Vogel
35a92b4097
OpenGL: Respect buffer-write allow registers
10 years ago
Jannik Vogel
c6bbc41984
OpenGL: Split buffer-write mask sync into seperate functions
10 years ago
Jannik Vogel
d47605b2ed
OpenGL: Keep stencil-test and framebuffer.depth_format in sync
10 years ago
MerryMage
a06dcfeb61
Common: Remove Common::make_unique, use std::make_unique
10 years ago
Emmanuel Gil Peyrot
3219be8ee0
OpenGL: Fix a double framebuffer completeness checks.
10 years ago
Jannik Vogel
693cbc1f8f
OpenGL: Check for framebuffer completeness
10 years ago
Jannik Vogel
c26b141407
Avoid warnings by casting to size_t for ARRAY_SIZE() comparisons
10 years ago
Yuri Kunde Schlesner
0c447e0a06
OpenGL: Don't attempt to draw empty triangle batches
Our code did not handle this well, causing random crashes in some
situations.
10 years ago
LittleWhite
4be68dddfb
Improve error report from Init() functions
Add error popup when citra initialization failed
10 years ago
Yuri Kunde Schlesner
c58bc25d5b
Pica: Write depth value even when depth test is disabled
This has been confirmed on hardware. Fixes Etrian Odyssey IV.
10 years ago
Dwayne Slater
6b775034dd
Add immediate mode vertex submission
10 years ago
MerryMage
0801363840
renderer_opengl: Initalise fragment shader LUT textures
10 years ago
bunnei
19557aaab3
pica: Cleanup lighting register definitions and documentation.
10 years ago
bunnei
c4d318f691
gl_rasterizer: Use alignas(16) instead of explicit padding.
10 years ago
bunnei
aaa7beeda8
renderer_opengl: Use GLvec3/GLvec4 aliases for commonly used types.
10 years ago
bunnei
8e9318f20a
gl_rasterizer: Fix issue with interpolation of opposite quaternions.
10 years ago
bunnei
a949fd5f25
pica_types: Replace float24/20/16 with a template class.
10 years ago
bunnei
310a1c30ca
gl_rasterizer: Remove unnecessary casts.
10 years ago
bunnei
c229503f4a
gl_rasterizer: Fix PicaShaderConfig on GCC.
10 years ago
bunnei
9dfb223d26
gl_rasterizer: Initial implementation of bump mapping.
10 years ago
bunnei
449902b558
gl_shader_gen: Fix bug in LUT range (should within range [0, 255] not [0, 256]).
10 years ago
bunnei
348c9c9ff3
gl_shader_gen: Implement lighting red, green, and blue reflection.
10 years ago
bunnei
01b407638c
gl_shader_gen: View should be normalized.
10 years ago
bunnei
c37de30cfc
gl_shader_gen: Implement fragment lighting fresnel effect.
10 years ago
bunnei
0e67c21c9e
gl_shader_gen: Implement fragment lighting specular 1 component.
10 years ago
bunnei
781b046579
gl_shader_gen: Add support for D0 LUT scaling.
10 years ago
bunnei
3d89dacd56
gl_shader_gen: Refactor lighting config to match Pica register naming.
- Also implement D0 LUT enable.
10 years ago
bunnei
6307999116
pica: Cleanup and add some comments to lighting registers.
10 years ago
bunnei
6878ba7608
gl_rasterizer: Minor naming refactor on Pica register naming.
10 years ago
bunnei
76f303538b
gl_shader_gen: Reorganize and cleanup lighting code.
- No functional difference.
10 years ago
bunnei
5f3bad8fb1
gl_shader_gen: Fix directional lights.
10 years ago
bunnei
bdc72d0904
gl_shader_gen: Fix bug with lighting where clamp highlights was only applied to last light.
10 years ago
bunnei
603b619cbe
gl_shader_gen: View vector needs to be normalized when computing half angle vector.
10 years ago
bunnei
021cb0bced
renderer_opengl: Use textures for fragment shader LUTs instead of UBOs.
- Gets us LUT interpolation for free.
- Some older Intel GPU drivers did not support the big UBOs needed to store the LUTs.
10 years ago
bunnei
bf89870437
renderer_opengl: Initial implementation of basic specular lighting.
10 years ago