mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
Properly set up fog parameters for openGL
This commit is contained in:
parent
51462226a7
commit
8d3235cd7c
2 changed files with 15 additions and 12 deletions
|
@ -92,7 +92,7 @@ static const reg_info reg_table[] =
|
|||
{ "spec_color", true, "dst_reg2", "", false },
|
||||
{ "front_diff_color", true, "dst_reg3", "", false },
|
||||
{ "front_spec_color", true, "dst_reg4", "", false },
|
||||
{ "fogc", true, "dst_reg5", ".x", true },
|
||||
{ "fog_c", true, "dst_reg5", ".xxxx", true },
|
||||
{ "gl_ClipDistance[0]", false, "dst_reg5", ".y", false },
|
||||
{ "gl_ClipDistance[1]", false, "dst_reg5", ".z", false },
|
||||
{ "gl_ClipDistance[2]", false, "dst_reg5", ".w", false },
|
||||
|
@ -118,10 +118,7 @@ void GLVertexDecompilerThread::insertOutputs(std::stringstream & OS, const std::
|
|||
{
|
||||
if (m_parr.HasParam(PF_PARAM_NONE, "vec4", i.src_reg) && i.need_declare)
|
||||
{
|
||||
if (i.name == "fogc")
|
||||
OS << "out float " << i.name << ";" << std::endl;
|
||||
else
|
||||
OS << "out vec4 " << i.name << ";" << std::endl;
|
||||
OS << "out vec4 " << i.name << ";" << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue