Commit Graph

39 Commits (98ff136f67bcf6d21bf70663e93c55e53d3853ce)

Author SHA1 Message Date
Connor McLaughlin 98ff136f67 GPU: Round texture coordinates instead of flooring
Fixes misaligned textures in some games such as Crash Bandicoot.

Currently, because the vertex offset is not applied at >1x resolution
scale, this will not work so it is disabled at >1x.
6 years ago
Connor McLaughlin 1891b45b0e GPU/OpenGL: Fix shader compile error on NVIDIA 6 years ago
Connor McLaughlin 715209e178 GPU/HW: Truncate colours to 16-bit before applying alpha
Fixes battle screen transitions blowing out in brightness in Final
Fantasy 7.
6 years ago
Connor McLaughlin e2f5905cd6 GPU/HW: Use unsigned integers in shaders for texcoords
Probably needs testing on GLES.
6 years ago
Connor McLaughlin 30033ed4aa GPU/HW: Minor improvements to texture filtering 6 years ago
Connor McLaughlin 13e2b28f50 GPU/HW: Only apply vertex offset at 1x resolution scale 6 years ago
Connor McLaughlin d7aa514f14 GPU/HW/OpenGL: Work around vertex-Y-off-by-one issue 6 years ago
Connor McLaughlin ec5b52b3fb GPU/HW: Tweak vertex shader offsets
Fixes Doom/Dark Forces/etc in hardware renderer, but only at 1x
resolution. Fixes missing lines in Castlevania SOTM, Ridge Racer Type 4,
etc.
6 years ago
Connor McLaughlin 5ad133a278 GPU/HW: Implement oversized copies on GPU
Fixes slowdown caused by this.
6 years ago
Connor McLaughlin 197b193ca3 GPU/HW/OpenGL: Use geometry shaders for upscaled line rendering 6 years ago
Connor McLaughlin d9ebb975b2 CommonHostInterface: Reimplement controller rumble support
Even better than before, supports separate motor control.
6 years ago
Connor McLaughlin 7779a54bc5 GPU: Rename 'Force Progressive Scan' to 'Disable Interlacing'
It affects rendering as well as display/scanout now, after all.
6 years ago
Connor McLaughlin 9e024b7a51 GPU: Handle VRAM wrap-around behavior on scanout 6 years ago
Connor McLaughlin 6775100170 GPU: Drop OpenGL ES renderer
We can put this through the normal GL renderer instead.
6 years ago
Connor McLaughlin c483a78889 GPU: Implement interlaced VRAM fills 6 years ago
Connor McLaughlin 2aecb570c1 GPU: Implement interlaced rendering in hardware backends 6 years ago
Connor McLaughlin 2a6e04988f GPU/HW: Simplify 24-bit scanout and interlacing shader
Has the added bonus of being faster (no downscale copy) and fixes the
edge case where the image is cropped in VRAM.
6 years ago
Connor McLaughlin e2e2b573c0 GPU/HW: Move drawing offset to CPU-side
Saves updating the uniform buffer.
6 years ago
Connor McLaughlin 40481305c4 GPU/HW: Fudge texture coordinates by half a screen-space pixel
Fixes holes in triangles in some games, e.g. Disney's The Emperor's New
Groove.
6 years ago
Connor McLaughlin e19175edae GPU/D3D11: Fix non-vertical line rendering at >1x scale 6 years ago
Connor McLaughlin 635ab72b37 GPU: Implement "Scaled Dithering" option
Fixes #29.
6 years ago
Connor McLaughlin f5482cb3b6 Don't require OpenGL compatibility profile 6 years ago
Connor McLaughlin 71c1e243fe Remove YBaseLib dependency 6 years ago
Connor McLaughlin 152b56c8cc GPU: Fix mask bit setting on non-textured polygons
Fixes garbled colours in FMVs in some games.
6 years ago
Connor McLaughlin 67c67bbb66 GPU: Add basic texture filtering support
Still has issues around the edges of text.
6 years ago
Connor McLaughlin c284d3835f GPU: Add a simplified OpenGL ES renderer
Seems this is the only way to get semi-decent performance out of Mali
drivers :/
6 years ago
Connor McLaughlin adc3a2fac1 Android: Support GLES3 and hardware renderers 6 years ago
Connor McLaughlin 0bc7333e6e GPU/OpenGL: Set GLSL version string dynamically
Rather than hardcoding to 3.3.
6 years ago
Connor McLaughlin 024ed01bbb GPU/HW: Set alpha to mask bit setting 6 years ago
Connor McLaughlin bc5a247a4b GPU/HW: Use dual-source blend to split alpha and mask 6 years ago
Connor McLaughlin bc9ed3572b GPU/HW: Fix flipped GPU readback in D3D11 6 years ago
Connor McLaughlin 3998b9684e GPU/HW: GPU-based RGBA8->RGB5551 conversion for readbacks 6 years ago
Connor McLaughlin 53881219ce GPU: Fix handling of interlaced non-480-line mode 6 years ago
Connor McLaughlin f7f4818de4 GPU/HW: Explicitly specify std140 layout for UBOs 6 years ago
Connor McLaughlin ff8cef4da3 GPU/HW: Support OpenGL ES 6 years ago
Connor McLaughlin 16d83989e5 GPU/HW: Support line drawing at >1x scale in D3D11 via GS 6 years ago
Connor McLaughlin 9de9cf3be2 GPU/HW: Add D3D11 renderer and refactor host interface/display 6 years ago
Connor McLaughlin 47849465d8 GPU/HW: Use uniform blocks for all shaders + HLSL support in shadergen 6 years ago
Connor McLaughlin be81d08109 GPU/HW: Split shadergen to seperate class 6 years ago