Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Black Dragon Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Logue
Black Dragon Viewer
Commits
de3568f1
Commit
de3568f1
authored
3 years ago
by
Ptolemy
Browse files
Options
Downloads
Patches
Plain Diff
SL-16127: Cleanup consts
parent
de2c6826
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llvosky.cpp
+5
-5
5 additions, 5 deletions
indra/newview/llvosky.cpp
with
5 additions
and
5 deletions
indra/newview/llvosky.cpp
+
5
−
5
View file @
de3568f1
...
@@ -64,7 +64,9 @@ namespace
...
@@ -64,7 +64,9 @@ namespace
const
S32
NUM_TILES_X
=
8
;
const
S32
NUM_TILES_X
=
8
;
const
S32
NUM_TILES_Y
=
4
;
const
S32
NUM_TILES_Y
=
4
;
const
S32
NUM_TILES
=
NUM_TILES_X
*
NUM_TILES_Y
;
const
S32
NUM_TILES
=
NUM_TILES_X
*
NUM_TILES_Y
;
const
S32
NUM_CUBEMAP_FACES
=
6
;
const
S32
NUM_CUBEMAP_FACES
=
6
;
// See sResolution for face dimensions
const
S32
TOTAL_TILES
=
NUM_CUBEMAP_FACES
*
NUM_TILES
;
const
S32
MAX_TILES
=
TOTAL_TILES
+
1
;
// Heavenly body constants
// Heavenly body constants
const
F32
SUN_DISK_RADIUS
=
0.5
f
;
const
F32
SUN_DISK_RADIUS
=
0.5
f
;
...
@@ -690,15 +692,13 @@ bool LLVOSky::updateSky()
...
@@ -690,15 +692,13 @@ bool LLVOSky::updateSky()
}
}
static
S32
next_frame
=
0
;
static
S32
next_frame
=
0
;
const
S32
total_no_tiles
=
NUM_CUBEMAP_FACES
*
NUM_TILES
;
const
S32
cycle_frame_no
=
total_no_tiles
+
1
;
mNeedUpdate
=
mForceUpdate
;
mNeedUpdate
=
mForceUpdate
;
++
next_frame
;
++
next_frame
;
next_frame
=
next_frame
%
cycle_frame_no
;
next_frame
=
next_frame
%
MAX_TILES
;
mInterpVal
=
(
!
mInitialized
)
?
1
:
(
F32
)
next_frame
/
cycle_frame_no
;
mInterpVal
=
(
!
mInitialized
)
?
1
:
(
F32
)
next_frame
/
MAX_TILES
;
LLHeavenBody
::
setInterpVal
(
mInterpVal
);
LLHeavenBody
::
setInterpVal
(
mInterpVal
);
updateDirections
(
psky
);
updateDirections
(
psky
);
...
...
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