Subv
73566ff7a9
SwRasterizer: Flip the vertex quaternions before clipping (if necessary).
9 years ago
Subv
2a75837bc3
SwRasterizer: Corrected the light LUT lookups.
9 years ago
Subv
f2d4d5c219
SwRasterizer: Corrected the light LUT lookups.
9 years ago
Subv
80b6fc592e
SwRasterizer: Fixed the lighting lut lookup function.
9 years ago
Subv
10b0bea060
SwRasterizer: Calculate fresnel for fragment lighting.
9 years ago
Subv
46b8c8e1da
SwRasterizer: Calculate specular_1 for fragment lighting.
9 years ago
Subv
be25e78b07
SwRasterizer: Calculate specular_0 for fragment lighting.
9 years ago
Subv
b2f472a2b1
SwRasterizer: Implement primary fragment color.
9 years ago
wwylele
8482933db8
gl_rasterizer: use texture buffer for proctex LUT
9 years ago
wwylele
8978ecb09c
gl_rasterizer: use texture buffer for fog LUT
9 years ago
wwylele
f1e377f57e
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
9 years ago
wwylele
457659fe01
gl_state: reset 1d textures
9 years ago
wwylele
42f7ca7412
gl_rasterizer: fix glGetUniformLocation type
9 years ago
wwylele
be9e952bdc
gl_rasterizer: manage texture ids in one place
9 years ago
wwylele
ab60414122
gl_rasterizer/lighting: fix LUT interpolation
9 years ago
wwylele
5a454173a8
gl_rasterizer/lighting: use the formula from the paper for germetic factor
9 years ago
Yuri Kunde Schlesner
f6715f98f5
Stop using reserved operator names (and/or/xor) with Xbyak
Also has the Dynarmic upgrade with the same change
9 years ago
wwylele
7052d43a67
gl_rasterizer/lighting: implement geometric factor
9 years ago
wwylele
972548e3ee
gl_rasterizer/lighting: Implement tangent mapping
9 years ago
wwylele
40b7d0bf3f
gl_rasterizer/lighting: implement lut input 5 (CP)
9 years ago
wwylele
b3b9468573
gl_rasterizer_cache: depth write is disabled if allow_depth_stencil_write is false
9 years ago
Yuri Kunde Schlesner
ba01a8302a
OpenGL: Update comment on AreQuaternionsOpposite with new information
While debugging the software renderer implementation, it was noticed
that this is actually exactly what the hardware does, upgrading the
status of this "hack" to being a proper implementation. And there was
much rejoicing.
9 years ago
wwylele
28d1e73d2f
pica/rasterizer: implement/stub texture wrap mode 4-7
9 years ago
wwylele
10906dceec
gl_rasterizer: implement spot light
9 years ago
wwylele
686cbf3ac6
gl_rasterizer: sync spot light status
9 years ago
wwylele
b5addf8fb8
pica: prepare registers for spotlight
9 years ago
wwylele
0b9bb082c3
swrasterizer: implement TextureCube
9 years ago
wwylele
077cc683e5
pica: add registers for texture cube
9 years ago
Yuri Kunde Schlesner
d736cca848
CMake: Create INTERFACE targets for microprofile and nihstro
9 years ago
Yuri Kunde Schlesner
4660bc1c78
CMake: Use IMPORTED target for libpng
9 years ago
Yuri Kunde Schlesner
7b81903756
CMake: Correct inter-module dependencies and library visibility
Modules didn't correctly define their dependencies before, which relied
on the frontends implicitly including every module for linking to
succeed.
Also changed every target_link_libraries call to specify visibility of
dependencies to avoid leaking definitions to dependents when not
necessary.
9 years ago
Yuri Kunde Schlesner
eb10f25025
Move screen size constants from video_core to core
video_core didn't even properly use them, and they were the source of
many otherwise-unnecessary dependencies from core to video_core.
9 years ago
Yuri Kunde Schlesner
6665557ff7
OpenGL: Remove unused RendererOpenGL fields
9 years ago
Yuri Kunde Schlesner
669ef82aee
OpenGL: Improve accuracy of quaternion interpolation
Current order of operations (rotate then normalize) seems to produce a
lot more distortion than normalizing and then rotating. This makes Citra
results match pretty closesly with hardware, and indicates that hardware
may also be using lerp instead of slerp to interpolate the quaternions.
9 years ago
wwylele
90c8d09098
gl_shader: refactor texture sampler into its own function
9 years ago
wwylele
36526c63ef
swrasterizer: add missing tc0_w and fragment lighting attribute processing
9 years ago
wwylele
4d62e75fb2
gl_rasterizer: implement procedural texture
9 years ago
wwylele
ade45b5b99
pica/swrasterizer: implement procedural texture
9 years ago
wwylele
393fee10a2
pica: use correct register value for shader bool_uniforms
variable value is not masked. the masked and combined register value should be used instead
9 years ago
wwylele
86ee1f6101
pica: correct bit field length for some registers
9 years ago
Jannik Vogel
ba722be2ac
Pica: Write GS registers
This adds the handlers for the geometry shader register writes which will call the functions from the previous commit to update registers for the GS.
9 years ago
Jannik Vogel
3fd3775d35
Pica: Write shader registers in functions
The commit after this one adds GS register writes, so this moves the VS handlers into functions so they can be re-used and extended more easily.
9 years ago
Jannik Vogel
925724c990
Pica: Set program code / swizzle data limit to 4096
One of the later commits will enable writing to GS regs.
It turns out that on startup, most games will write 4096 GS program words.
The current limit of 1024 would hence result in 3072 (4096 - 1024) error messages:
```
HW.GPU <Error> video_core/shader/shader.cpp:WriteProgramCode:229: Invalid GS program offset 1024
```
New constants have been introduced to represent these limits.
The swizzle data size has also been raised. This matches the given field sizes of [GPUREG_SH_OPDESCS_INDEX](https://3dbrew.org/wiki/GPU/Internal_Registers#GPUREG_SH_OPDESCS_INDEX ) and [GPUREG_SH_CODETRANSFER_INDEX](https://www.3dbrew.org/wiki/GPU/Internal_Registers#GPUREG_SH_CODETRANSFER_INDEX ) (12 bit = [0; 4095]).
9 years ago
wwylele
039b293092
pica: shader_dirty if texture2 coord changed
9 years ago
wwylele
0f664ef89d
pica: use correct coordinates for texture 2
9 years ago
wwylele
2c2e872b31
gl_shader_gen: remove TODO about Lerp behaviour verification. The implementation is verified against hardware
9 years ago
wwylele
b624a95205
rasterizer: implement combiner operation 7 (Dot3_RGBA)
9 years ago
Yuri Kunde Schlesner
52a4489d65
OpenGL: Pass Pica regs via parameter
9 years ago
Yuri Kunde Schlesner
a6fd4533f6
OpenGL: Move PicaShaderConfig to gl_shader_gen.h
Also move the implementation of CurrentConfig to the cpp file.
9 years ago
Yuri Kunde Schlesner
40e28f6217
OpenGL: Move Attributes enum to a more appropriate file
9 years ago