mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-26 12:42:41 +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:
parent
f8dbe281a5
commit
efa501dac6
@ -404,19 +404,8 @@ namespace glsl
|
|||||||
" attribute_desc desc = fetch_desc(location);\n"
|
" attribute_desc desc = fetch_desc(location);\n"
|
||||||
" if (desc.attribute_size == 0)\n"
|
" if (desc.attribute_size == 0)\n"
|
||||||
" {\n"
|
" {\n"
|
||||||
" //default values\n"
|
" //default value\n"
|
||||||
" const vec4 defaults[] = \n"
|
" return vec4(0., 0., 0., 1.);\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"
|
|
||||||
" }\n\n"
|
" }\n\n"
|
||||||
" int vertex_id = " << vertex_id_name << " - int(vertex_base_index);\n"
|
" int vertex_id = " << vertex_id_name << " - int(vertex_base_index);\n"
|
||||||
" if (desc.frequency == 0)\n"
|
" if (desc.frequency == 0)\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user