mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-16 18:59:48 +12:00
add: temporary depth hack
This commit is contained in:
parent
863edac152
commit
ceb3922544
1 changed files with 4 additions and 1 deletions
|
@ -90,7 +90,10 @@ vertex DrawVertexOut vertexDraw(DrawVertexIn in [[stage_in]], constant PicaRegs&
|
||||||
// Flip the y position
|
// Flip the y position
|
||||||
out.position.y = -out.position.y;
|
out.position.y = -out.position.y;
|
||||||
// in.position.z is in range of [-1 ... 1], convert it to [0 ... 1]
|
// in.position.z is in range of [-1 ... 1], convert it to [0 ... 1]
|
||||||
out.position.z = (in.position.z + 1.0) * 0.5;
|
//out.position.xyz /= out.position.w;
|
||||||
|
//out.position.w = 1.0;
|
||||||
|
// HACK
|
||||||
|
out.position.z = 0.5;//(in.position.z + 1.0) * 0.5;
|
||||||
|
|
||||||
// Color
|
// Color
|
||||||
out.color = in.color;
|
out.color = in.color;
|
||||||
|
|
Loading…
Add table
Reference in a new issue