mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Replace LOD computation to better fit VR needs
This commit is contained in:
parent
55c4be043d
commit
ad5ea81eeb
1 changed files with 11 additions and 0 deletions
|
@ -164,6 +164,17 @@ R_ComputeLOD
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
int R_ComputeLOD( trRefEntity_t *ent ) {
|
int R_ComputeLOD( trRefEntity_t *ent ) {
|
||||||
|
|
||||||
|
//HACK: force specific LOD (for VR it fits better)
|
||||||
|
if (1)
|
||||||
|
{
|
||||||
|
//high -> 0, medium -> 2, low -> 4
|
||||||
|
int lod = r_lodbias->integer + r_lodbias->integer;
|
||||||
|
if (lod >= tr.currentModel->numLods)
|
||||||
|
lod = tr.currentModel->numLods - 1;
|
||||||
|
return lod;
|
||||||
|
}
|
||||||
|
|
||||||
float radius;
|
float radius;
|
||||||
float flod, lodscale;
|
float flod, lodscale;
|
||||||
float projectedRadius;
|
float projectedRadius;
|
||||||
|
|
Loading…
Reference in a new issue