mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VideoCommon: Add a user-defined far clipping plane.
This commit is contained in:
parent
6e2052fae6
commit
94927f360f
4 changed files with 21 additions and 5 deletions
|
@ -313,7 +313,10 @@ static void EmitVertex(ShaderCode& out, const geometry_shader_uid_data* uid_data
|
|||
{
|
||||
out.Write("\tgl_Position = %s.pos;\n", vertex);
|
||||
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||
out.Write("\tgl_ClipDistance[0] = %s.clipDist;\n", vertex);
|
||||
{
|
||||
out.Write("\tgl_ClipDistance[0] = %s.clipDist0;\n", vertex);
|
||||
out.Write("\tgl_ClipDistance[1] = %s.clipDist1;\n", vertex);
|
||||
}
|
||||
AssignVSOutputMembers(out, "ps", vertex, uid_data->numTexGens, uid_data->pixel_lighting);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue