Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
21ccefe4
Commit
21ccefe4
authored
5 years ago
by
fickleheart
Browse files
Options
Downloads
Patches
Plain Diff
Fix sky texture scaling wrong with fov changes
parent
7bd9344d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!848
shaders master merge and mipmap fix
,
!809
Fix buffer overrun with players that have no associated node
,
!690
Rolling
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/r_main.h
+1
-0
1 addition, 0 deletions
src/r_main.h
src/r_sky.c
+1
-1
1 addition, 1 deletion
src/r_sky.c
with
2 additions
and
1 deletion
src/r_main.h
+
1
−
0
View file @
21ccefe4
...
...
@@ -26,6 +26,7 @@ extern INT32 centerx, centery;
extern
fixed_t
centerxfrac
,
centeryfrac
;
extern
fixed_t
projection
,
projectiony
;
extern
fixed_t
fovtan
;
// field of view
extern
size_t
validcount
,
linecount
,
loopcount
,
framecount
;
...
...
This diff is collapsed.
Click to expand it.
src/r_sky.c
+
1
−
1
View file @
21ccefe4
...
...
@@ -76,5 +76,5 @@ void R_SetupSkyDraw(void)
void
R_SetSkyScale
(
void
)
{
fixed_t
difference
=
vid
.
fdupx
-
(
vid
.
dupx
<<
FRACBITS
);
skyscale
=
FixedDiv
(
FRACUNIT
,
vid
.
fdupx
+
difference
);
skyscale
=
FixedDiv
(
fovtan
,
vid
.
fdupx
+
difference
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment