[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.3447561 [View]
File: 191 KB, 1280x720, Screenshot_Doom_20160823_150328.png [View same] [iqdb] [saucenao] [google]
3447561

>>3447502
Okay I'm still not 100% on what the gl_Position.w value is, but if I subtract from it I can make the HUD bigger, so I can compensate for the HUD-shrinking effects of multiplying gl_Position.xy by a fraction.

Right now I've got four sets that result in a correct HUD. Multiplying xy by 1 and subtracting 1 from w, multiplying by 0.5 and subtracting 0.5, multiplying by 0.25 and subtracting 0.75, and multiplying by 0.125 and subtracting 0.875. So it seems there's no actual pattern.

I'm just joking, it's 1 minus the multiplier. Maybe that means it's the depth, I mean if I set it to the right number I can make the world disappear a few units in front of me like a reverse clipping plane.

Navigation
View posts[+24][+48][+96]