imgui/examples/directx11_example
Nicolas Guillemot 509ac33abe fix POSITION format (ImDrawVert::pos is 2D, not 4D)
the inputlayout incorrectly described the POSITION attribute as being
4D, while ImDrawVert::pos is 2D. This went unnoticed because the buffer
binding has a stride of sizeof(ImDrawVert) and the POSITION is treated
as a float2 in the vertex shader. If you switch POSITION to float4 in
the vertex shader (and actually use the z/w in the matrix
multiplication) then everything become wacky-looking since it's
interpreting the texture coordinates as z/w. On a similar note: It's
weird that the projection matrix takes z and w into consideration when
those don't exist in the shader due to positions being float2s.
2015-10-11 16:42:22 -07:00
..
build_win32.bat Examples: DirectX11: Fixed batch file for VS 2012+, still works for 2008/2010.. Include path order matters... 2015-09-10 20:58:43 +01:00
directx11_example.vcxproj Updated projects to reference new files (#219) 2015-07-21 17:04:03 -06:00
directx11_example.vcxproj.filters Updated projects to reference new files (#219) 2015-07-21 17:04:03 -06:00
imgui_impl_dx11.cpp fix POSITION format (ImDrawVert::pos is 2D, not 4D) 2015-10-11 16:42:22 -07:00
imgui_impl_dx11.h Examples: imgui_impl* functions declared with IMGUI_API to ease copy & pasting into projects using DLL 2015-08-24 14:02:51 +02:00
main.cpp Fonts: added Cousine-Regular.ttf 2015-07-15 14:56:29 -06:00