ryujinx/Ryujinx.Graphics.OpenGL
riperiperi 6c76bc3bc0
Change disabled vertex attribute value to (0, 0, 0, 1) (#2573)
This seems to be the default value when the vertex attribute is disabled, or components aren't defined.

This fixes a regression from #2307 in SMO where a plant in the Wooded Kingdom would draw slightly differently in the depth prepass, leading to depth test failing later on.

GDK has stated that the specific case in Gundam only expects x and y to be 0, and Vulkan's undefined value for z does appear to be 0 when a vertex attribute type does not have that component, hence the value (0, 0, 0, 1).

This worked in Vulkan despite also providing an all 0s attribute due to the vertex attribute binding being R32Float, so the other values were undefined. It should be changed there separately.
2021-08-20 18:09:30 -03:00
..
Helper Miria: The Death of OpenTK 3 (#2194) 2021-04-14 12:28:43 +02:00
Image Workaround for cubemap view data upload bug on Intel (#2539) 2021-08-11 23:19:28 +02:00
Queries
BackgroundContextWorker.cs Assign _backgroundContext before starting its worker thread. (#2299) 2021-05-20 15:29:10 +02:00
Buffer.cs Return mapped buffer pointer directly for flush, WriteableRegion for textures (#2494) 2021-07-19 19:10:54 -03:00
Constants.cs
Debugger.cs
EnumConversion.cs
FormatInfo.cs
FormatTable.cs
Framebuffer.cs Use copy dependencies for the Intel/AMD view format workaround (#2144) 2021-05-16 20:43:27 +02:00
Handle.cs
HwCapabilities.cs Only use persistent buffers to flush on NVIDIA and Windows+AMD (#2489) 2021-07-18 11:45:50 -03:00
IOpenGLContext.cs Miria: The Death of OpenTK 3 (#2194) 2021-04-14 12:28:43 +02:00
PersistentBuffers.cs Return mapped buffer pointer directly for flush, WriteableRegion for textures (#2494) 2021-07-19 19:10:54 -03:00
Pipeline.cs Ensure render scale is initialized to 1 on the backend (#2543) 2021-08-11 19:44:41 -03:00
Program.cs Replace BGRA and scale uniforms with a uniform block (#2496) 2021-08-11 21:33:43 +02:00
Renderer.cs Ensure render scale is initialized to 1 on the backend (#2543) 2021-08-11 19:44:41 -03:00
ResourcePool.cs
Ryujinx.Graphics.OpenGL.csproj Miria: The Death of OpenTK 3 (#2194) 2021-04-14 12:28:43 +02:00
Shader.cs
Sync.cs
VertexArray.cs Change disabled vertex attribute value to (0, 0, 0, 1) (#2573) 2021-08-20 18:09:30 -03:00
VertexBuffer.cs
Window.cs Add Screenshot Feature (#2354) 2021-06-28 22:09:43 +02:00