mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-29 03:24:36 +00: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"
|
||||
" 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"
|
||||
|
Loading…
Reference in New Issue
Block a user