mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-12 09:09:47 +12:00
Shader decompiler: Readd clipping
This commit is contained in:
parent
67ff1ccb8b
commit
db64b0a260
1 changed files with 4 additions and 2 deletions
|
@ -682,6 +682,8 @@ std::string FragmentGenerator::getVertexShaderAccelerated(const std::string& pic
|
||||||
ret += "\n#define USING_GLES\n";
|
ret += "\n#define USING_GLES\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret += uniformDefinition;
|
||||||
|
|
||||||
ret += R"(
|
ret += R"(
|
||||||
out vec4 v_quaternion;
|
out vec4 v_quaternion;
|
||||||
out vec4 v_colour;
|
out vec4 v_colour;
|
||||||
|
@ -716,8 +718,8 @@ void main() {
|
||||||
v_quaternion = a_quaternion;
|
v_quaternion = a_quaternion;
|
||||||
|
|
||||||
#ifndef USING_GLES
|
#ifndef USING_GLES
|
||||||
//gl_ClipDistance[0] = -a_coords.z;
|
gl_ClipDistance[0] = -a_coords.z;
|
||||||
//gl_ClipDistance[1] = dot(clipCoords, a_coords);
|
gl_ClipDistance[1] = dot(clipCoords, a_coords);
|
||||||
#endif
|
#endif
|
||||||
})";
|
})";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue