aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner <yuriks@yuriks.net>2015-07-21 03:26:04 -0300
committerGravatar Yuri Kunde Schlesner <yuriks@yuriks.net>2015-07-23 16:51:25 -0300
commit1fe9b0b82eb2478f8930d18843c959c3e85dde1e (patch)
tree33ce975834bf2a49a0a7779fbb05d5b7218b7c4e /src/video_core/vertex_shader.cpp
parent4e092022267e4f232429013653ba1bd4ac8b0a05 (diff)
VideoCore: Fix values of unset components in input attribute arrays
If an input attribute array had a field with less than 4 components, the remaining components were left unset if not specified by a default vertex attribute. If neither mechanism would set a component, it would assume a garbage value. It has been verified that the hardware behavior is to instead to set the missing components from the fixed default of (0 0 0 1). The default vertex attribute values aren't used at all if a vertex array is specified for that attribute. Fixes UI graphics on Fire Emblem: Awakening, a small texturing glitch when selecting a character in Cubic Ninja, as well as eliminating the unset-W hack which was required for Ocarina of Time to not have garbled triangles. This change has been tested against hardware.
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
0 files changed, 0 insertions, 0 deletions