Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
vitaquake3
Commits
d8d69fde
Commit
d8d69fde
authored
Aug 07, 2019
by
Rinnegatamante
Browse files
Enabled portals code, made r_noportals editable.
parent
6f36728e
Changes
5
Hide whitespace changes
Inline
Side-by-side
code/renderergl1/tr_backend.c
View file @
d8d69fde
...
...
@@ -458,12 +458,10 @@ void RB_BeginDrawingView (void) {
plane2
[
3
]
=
DotProduct
(
plane
,
backEnd
.
viewParms
.
or
.
origin
)
-
plane
[
3
];
qglLoadMatrixf
(
s_flipMatrix
);
#ifndef __PSP2__
qglClipPlane
(
GL_CLIP_PLANE0
,
plane2
);
glClipPlane
(
GL_CLIP_PLANE0
,
plane2
);
qglEnable
(
GL_CLIP_PLANE0
);
}
else
{
qglDisable
(
GL_CLIP_PLANE0
);
#endif
}
}
...
...
@@ -685,9 +683,8 @@ void RB_SetGL2D (void) {
GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA
);
GL_Cull
(
CT_TWO_SIDED
);
#ifndef __PSP2__
qglDisable
(
GL_CLIP_PLANE0
);
#endif
// set time for 2D shaders
backEnd
.
refdef
.
time
=
ri
.
Milliseconds
();
backEnd
.
refdef
.
floatTime
=
backEnd
.
refdef
.
time
*
0
.
001
;
...
...
code/renderergl1/tr_flares.c
View file @
d8d69fde
...
...
@@ -514,9 +514,7 @@ void RB_RenderFlares (void) {
}
if
(
backEnd
.
viewParms
.
isPortal
)
{
#ifndef __PSP2__
qglDisable
(
GL_CLIP_PLANE0
);
#endif
}
qglPushMatrix
();
...
...
code/renderergl1/tr_init.c
View file @
d8d69fde
...
...
@@ -1160,7 +1160,7 @@ void R_Register( void )
r_offsetUnits
=
ri
.
Cvar_Get
(
"r_offsetunits"
,
"-2"
,
CVAR_CHEAT
);
r_drawBuffer
=
ri
.
Cvar_Get
(
"r_drawBuffer"
,
"GL_BACK"
,
CVAR_CHEAT
);
r_lockpvs
=
ri
.
Cvar_Get
(
"r_lockpvs"
,
"0"
,
CVAR_CHEAT
);
r_noportals
=
ri
.
Cvar_Get
(
"r_noportals"
,
"1"
,
CVAR_
CHEAT
);
r_noportals
=
ri
.
Cvar_Get
(
"r_noportals"
,
"1"
,
CVAR_
ARCHIVE
);
r_shadows
=
ri
.
Cvar_Get
(
"cg_shadows"
,
"1"
,
0
);
r_marksOnTriangleMeshes
=
ri
.
Cvar_Get
(
"r_marksOnTriangleMeshes"
,
"0"
,
CVAR_ARCHIVE
);
...
...
code/renderergl1/tr_shadows.c
View file @
d8d69fde
...
...
@@ -228,7 +228,7 @@ void RB_ShadowFinish( void ) {
qglEnable
(
GL_STENCIL_TEST
);
qglStencilFunc
(
GL_NOTEQUAL
,
0
,
255
);
//->
qglDisable (GL_CLIP_PLANE0);
qglDisable
(
GL_CLIP_PLANE0
);
GL_Cull
(
CT_TWO_SIDED
);
GL_Bind
(
tr
.
whiteImage
);
...
...
code/renderergl1/tr_surface.c
View file @
d8d69fde
...
...
@@ -1161,7 +1161,7 @@ Draws x/y/z lines from the origin for orientation debugging
static
void
RB_SurfaceAxis
(
void
)
{
GL_Bind
(
tr
.
whiteImage
);
GL_State
(
GLS_DEFAULT
);
//->q
glLineWidth( 3 );
glLineWidth
(
3
);
float
clrs
[]
=
{
1
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
...
...
@@ -1183,7 +1183,7 @@ static void RB_SurfaceAxis( void ) {
vglColorPointer
(
4
,
GL_FLOAT
,
0
,
6
,
clrs
);
vglDrawObjects
(
GL_LINES
,
6
,
GL_TRUE
);
glDisableClientState
(
GL_COLOR_ARRAY
);
//->q
glLineWidth( 1 );
glLineWidth
(
1
);
}
//===========================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment