mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +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 += uniformDefinition;
|
||||
|
||||
ret += R"(
|
||||
out vec4 v_quaternion;
|
||||
out vec4 v_colour;
|
||||
|
@ -716,8 +718,8 @@ void main() {
|
|||
v_quaternion = a_quaternion;
|
||||
|
||||
#ifndef USING_GLES
|
||||
//gl_ClipDistance[0] = -a_coords.z;
|
||||
//gl_ClipDistance[1] = dot(clipCoords, a_coords);
|
||||
gl_ClipDistance[0] = -a_coords.z;
|
||||
gl_ClipDistance[1] = dot(clipCoords, a_coords);
|
||||
#endif
|
||||
})";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue