Commit Graph
100 Commits
Author SHA1 Message Date
wwylele 0566c24c9b gl_shader_gen: simplify and clarify the depth transformation between vertex shader and fragment shader 2017-08-21 08:03:07 +03:00
wwylele b8e0d96451 gl_rasterizer: add clipping plane z<=0 defined in PICA 2017-08-21 08:03:07 +03:00
wwylele f97a47ff84 HID: fix a comment and a warning 2017-08-20 08:37:48 +03:00
wwylele c7570dc130 motion_emu: no need to include thread in header 2017-08-19 07:21:02 +03:00
Weiyi Wang 822d2e01da Merge pull request #2875 from wwylele/bump-skip
gl_shader_gen: don't call SampleTexture when bump map is not used
2017-08-12 01:23:45 +03:00
wwylele 5fa5360713 gl_shader_gen: don't call SampleTexture when bump map is not used 2017-08-11 18:35:00 +03:00
wwylele 88451a0b73 move MotionEmu from core/frontend to input_common as a InputDevice 2017-08-11 11:05:08 +03:00
wwylele 49b645d6a7 HID: use MotionDevice for Accelerometer and Gyroscope 2017-08-11 11:03:18 +03:00
Weiyi Wang d9dd18bace Merge pull request #2874 from danzel/spelling-1
Fix some spelling mistakes
2017-08-11 11:02:14 +03:00
wwylele 2f5a41f170 SwRasterizer/Lighting: implement spot light 2017-08-11 01:19:10 +03:00
wwylele 9f2f72dd4b SwRasterizer/Lighting: implement geometric factor 2017-08-11 01:18:43 +03:00
Weiyi Wang aae427572d Merge pull request #2863 from wwylele/pad-state-zero
HID: zero unused PadState bits
2017-08-10 17:50:18 +03:00
wwylele 29e17d34c1 HID: zero unused PadState bits 2017-08-10 17:01:03 +03:00
Weiyi Wang 65fb35fd76 Merge pull request #2868 from wwylele/swr-tuple
SwRasterizer/Lighting: use make_tuple instead of constructor
2017-08-10 12:44:23 +03:00
wwylele 02f8113e2c SwRasterizer/Lighting: use make_tuple instead of constructor
implicit tuple constructor is a c++17 thing, which is not supported by some not-so-old libraries. Play safe for now
2017-08-10 12:19:58 +03:00
Weiyi Wang a55feb2008 Merge pull request #2822 from wwylele/sw_lighting-2
Implement fragment lighting in the sw renderer (take 2)
2017-08-09 18:54:29 +03:00
Weiyi Wang 6d71e67894 Merge pull request #2856 from wwylele/shader-share
pica: upload shared shader code & swizzle to both unit
2017-08-09 18:52:30 +03:00
wwylele 4eef8ded72 pica: upload shared shader code to both unit 2017-08-07 10:30:05 +03:00
wwylele 87f14a930c SwRasterizer/Lighting: shorten file name 2017-08-03 13:51:22 +03:00
wwylele 92d975e86c SwRasterizer/Lighting: move to its own file 2017-08-02 22:20:40 +03:00
wwylele 58d3ebcd08 SwRasterizer/Lighting: reduce confusion 2017-08-02 22:07:15 +03:00
wwylele 357251a777 SwRasterizer/Lighting: move quaternion normalization to the caller 2017-08-02 22:05:53 +03:00
Weiyi Wang ce05a88f81 Merge pull request #2848 from wwylele/shader-loop-fix
pica/shader_interpreter: fix off-by-one in LOOP
2017-07-29 12:34:28 +03:00
wwylele 4e6b5cb7a8 pica/shader_interpreter: fix off-by-one in LOOP 2017-07-27 13:48:27 +03:00
Weiyi Wang 92b087d99c Merge pull request #2844 from jroweboy/nightlyfix
Use WinSSPI instead of OpenSSL
2017-07-24 19:23:07 +03:00
Weiyi Wang e9ddcdbd0d Merge pull request #2799 from yuriks/virtual-cached-range-flush
Add address conversion functions returning optional, Add function to flush virtual region from rasterizer cache
2017-07-22 10:15:52 +03:00
wwylele 230aaff3ba debugger/shader: display LOOP 2017-07-20 23:30:34 +03:00
wwylele b589029231 debugger/shader: print the invert flag for JMPU 2017-07-20 23:18:07 +03:00
wwylele 6d237d89c4 debugger/shader: fix address register for reverted arithmetic op 2017-07-20 23:12:08 +03:00
wwylele 693080a0fd debugger/shader: fix inverted uniform flow control 2017-07-20 22:47:53 +03:00
Weiyi Wang c1a020c755 Merge pull request #2818 from B3n30/network
Enable data transfer over ENet
2017-07-17 17:08:02 +03:00
Weiyi Wang 4bf8c56b48 Merge pull request #2784 from wwylele/font-archive
load shared font from system archive
2017-07-16 20:12:55 +03:00
Weiyi Wang 90cdc71410 Merge pull request #2824 from jroweboy/mingw_compile_test
Update enet submodule
2017-07-13 09:57:35 +03:00
wwylele 2636a57ad0 SwRasterizer/Lighting: dist atten lut input need to be clamp 2017-07-11 22:19:00 +03:00
wwylele 4901e3f1a0 SwRasterizer/Lighting: unify float suffix 2017-07-11 22:15:35 +03:00
wwylele 9397048c51 SwRasterizer/Lighting: get rid of nested return 2017-07-11 22:15:35 +03:00
wwylele d65c129f19 SwRasterizer/Lighting: refactor GetLutValue into a function.
merging similar pattern. Also makes the code more similar to the gl one
2017-07-11 22:15:35 +03:00
wwylele 6cda129183 SwRasterizer: only interpolate quat and view when lighting is enabled 2017-07-11 21:35:57 +03:00
wwylele 81da1555bb vector_math: remove dead template parameter 2017-07-11 20:08:56 +03:00
wwylele d6513920a7 SwRasterizer/Lighting: pass lighting state as parameter 2017-07-11 20:06:26 +03:00
wwylele 680e67f61e vector_math: remove broken SFINAE stuff
this was originally added to eliminate warnings on MSVC, but it doesn't work for custom types.
2017-07-11 19:51:29 +03:00
wwylele be10a79c0f gl_rasterizer: use texture buffer for proctex LUT 2017-07-01 11:02:48 +03:00
wwylele 717f7e56ad gpu: add comments for TextureCopy 2017-06-29 13:09:23 +03:00
wwylele f1d1d5d8ed gpu: fix edge cases for TextureCopy 2017-06-27 23:20:23 +03:00
wwylele 456ccc24ea apt: load shared font from system archive 2017-06-26 01:38:12 +03:00
wwylele 7b618a0580 apt/shared_font: don't relocate zero offset 2017-06-26 00:43:23 +03:00
wwylele 2da7a508e0 gl_rasterizer: use texture buffer for fog LUT 2017-06-22 20:41:00 +03:00
wwylele 2c3facec41 gl_rasterizer: create the texture before applying the state
this is a rebasing error from #2792. It doesn't affect much though, because the later more Apply() call fixes/hides it
2017-06-22 17:47:46 +03:00
wwylele accd87428e gl_state: reset 1d textures 2017-06-21 23:13:06 +03:00
wwylele 4176419621 gl_rasterizer: fix glGetUniformLocation type 2017-06-21 23:13:06 +03:00
wwylele 198896fb92 gl_rasterizer: manage texture ids in one place 2017-06-21 23:13:06 +03:00
wwylele 2e35efb37e gl_rasterizer/lighting: fix LUT interpolation 2017-06-21 23:13:06 +03:00
Weiyi Wang b9fac62554 Merge pull request #2789 from yuriks/misc-kernel
Trivial no-op additions
2017-06-21 20:34:12 +03:00
wwylele f2e7eb0e24 gl_rasterizer/lighting: use the formula from the paper for germetic factor 2017-06-18 10:29:02 +03:00
wwylele fdb7388685 gl_rasterizer/lighting: implement geometric factor 2017-06-15 14:59:01 +03:00
wwylele a97a9f4faa gl_rasterizer/lighting: Implement tangent mapping 2017-06-11 21:30:53 +03:00
wwylele d566f0ca29 gl_rasterizer/lighting: implement lut input 5 (CP) 2017-06-11 21:30:53 +03:00
wwylele e61b69bae9 gl_rasterizer_cache: depth write is disabled if allow_depth_stencil_write is false 2017-06-10 15:10:34 +03:00
wwylele 62ceb48f38 pica/rasterizer: implement/stub texture wrap mode 4-7 2017-06-04 09:47:25 +03:00
wwylele bfe2717075 gl_rasterizer: implement spot light 2017-05-30 10:54:58 +03:00
wwylele bbd802959f gl_rasterizer: sync spot light status 2017-05-30 10:54:58 +03:00
wwylele 3f47308e35 pica: prepare registers for spotlight 2017-05-30 10:54:58 +03:00
wwylele 5f33679af6 swrasterizer: implement TextureCube 2017-05-29 22:28:48 +03:00
wwylele 7ea0c6fe27 pica: add registers for texture cube 2017-05-29 22:03:08 +03:00
wwylele 11d2e956f3 fixup!cam: use IPCHelper 2017-05-27 21:30:07 +03:00
wwylele b27fc52cee gl_shader: refactor texture sampler into its own function 2017-05-27 01:56:22 +03:00
wwylele e6ea8f3a39 cam: move u32->u8 trancation to IPCHelper 2017-05-24 12:50:19 +03:00
wwylele 3e76e3739b cam: use IPCHelper 2017-05-24 12:45:36 +03:00
wwylele ec0b9fb820 swrasterizer: add missing tc0_w and fragment lighting attribute processing 2017-05-21 09:09:15 +03:00
wwylele b06772686f gl_rasterizer: implement procedural texture 2017-05-20 13:50:50 +03:00
wwylele eba689e736 pica/swrasterizer: implement procedural texture 2017-05-20 13:50:50 +03:00
wwylele 53a6a4a83f pica: use correct register value for shader bool_uniforms
variable value is not masked. the masked and combined register value should be used instead
2017-05-17 22:14:09 +03:00
wwylele 402e92f4a4 pica: correct bit field length for some registers 2017-05-16 19:24:06 +03:00
Weiyi Wang 901b06a2df Merge pull request #2695 from JayFoxRox/gs-regs
Prepare Pica registers for Geometry Shaders
2017-05-12 18:02:45 +03:00
wwylele a68e9e92f8 fixup!ir: implement new 3ds HID via ir:rst 2017-05-07 21:53:27 +03:00
wwylele 37a8e18c4f pica: shader_dirty if texture2 coord changed 2017-05-05 15:35:17 +03:00
wwylele 759b4c9811 ir: implement new 3ds HID via ir:rst 2017-05-04 12:59:28 +03:00
wwylele 8c0ced30fa pica: use correct coordinates for texture 2 2017-05-03 22:12:46 +03:00
wwylele bfa4f6c052 ir: implement circle pad pro 2017-05-03 09:44:00 +03:00
wwylele 4b284eaac3 gl_shader_gen: remove TODO about Lerp behaviour verification. The implementation is verified against hardware 2017-04-20 22:56:07 +03:00
wwylele e60e8575aa rasterizer: implement combiner operation 7 (Dot3_RGBA) 2017-04-19 23:48:10 +03:00
wwylele 2bb38b3a76 input_common/sdl: add support for binding button to axis 2017-04-17 14:14:35 +03:00
wwylele 3e8c887a12 ldr_ro: use IPC helper 2017-04-17 10:11:18 +03:00
wwylele 9cfba2c46c qt: enable config for circle pad pro 2017-04-09 12:05:57 +03:00
wwylele 840f375614 ptm: create SharedExtSave file before openning it 2017-03-25 14:22:07 +03:00
wwylele e26b7fc688 shared_page: stub battery state 2017-03-21 13:25:56 +02:00
Weiyi Wang 92d7469820 Merge pull request #2631 from wwylele/fix-unwrap
apt: fix RequestBuilder parameters for Unwrap
2017-03-18 14:36:49 +02:00
wwylele 0fef7eb227 apt: fix RequestBuilder parameters for Unwrap 2017-03-18 11:45:19 +02:00
wwylele fe76e9f84c citra-qt: remove dead code 2017-03-17 21:45:29 +02:00
wwylele c22571a470 citra-qt: release all buttons when render window focus is lost
credit to @Hawkheart for the original idea
2017-03-17 21:41:25 +02:00
wwylele 1d1c322db7 cfg: implement GenHashConsoleUnique 2017-03-12 12:24:57 +02:00
wwylele df855674d4 file_util: Log when using local user directory 2017-03-11 18:31:17 +02:00
wwylele ee1d7b5dfc file_sys: lower log level for setting host path 2017-03-08 17:47:24 +02:00
wwylele d8d0f5f179 file_util: lower logging level for harmless cases 2017-03-08 17:42:10 +02:00
wwylele ba13b62257 loader/ncch: less verbose log for loading game list. only log program ID when booting 2017-03-08 17:37:24 +02:00
wwylele b940ee0663 loader: lower file name logging level 2017-03-08 17:25:09 +02:00
wwylele 266974f04b qt/config_input: don't connect for null button 2017-03-02 13:29:28 +02:00
wwylele fc68d04fa1 citra: update default ini with new input system 2017-03-01 23:30:57 +02:00
wwylele 8b46139770 Input: remove unused stuff & clean up
1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID
2. removed button handling in EmuWindow
3. removed key_map
4. cleanup #include
2017-03-01 23:30:57 +02:00
wwylele 16569fbe83 Qt: rework input configuration for new input system 2017-03-01 23:30:57 +02:00