1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

rsx/vp: Set default inputs to (0, 0, 0, 1)

- From some hw tests, it seems this is the default.
This commit is contained in:
kd-11 2019-09-06 00:50:49 +03:00 committed by kd-11
parent f8dbe281a5
commit efa501dac6

View File

@ -404,19 +404,8 @@ namespace glsl
" attribute_desc desc = fetch_desc(location);\n"
" if (desc.attribute_size == 0)\n"
" {\n"
" //default values\n"
" const vec4 defaults[] = \n"
" { vec4(0., 0., 0., 1.), //position\n"
" vec4(0.), vec4(0.), //weight, normals\n"
" vec4(1.), //diffuse\n"
" vec4(0.), vec4(0.), //specular, fog\n"
" vec4(1.), //point size\n"
" vec4(0.), //in_7\n"
" //in_tc registers\n"
" vec4(0.), vec4(0.), vec4(0.), vec4(0.),\n"
" vec4(0.), vec4(0.), vec4(0.), vec4(0.)\n"
" };\n"
" return defaults[location];\n"
" //default value\n"
" return vec4(0., 0., 0., 1.);\n"
" }\n\n"
" int vertex_id = " << vertex_id_name << " - int(vertex_base_index);\n"
" if (desc.frequency == 0)\n"