Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
UltimateZoneBuilder
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
Alam Ed Arias
UltimateZoneBuilder
Commits
db1db76b
Commit
db1db76b
authored
8 years ago
by
ZZYZX
Browse files
Options
Downloads
Patches
Plain Diff
Fixed: Doom64 lighting was not displayed in 2D modes
parent
6bb79c1c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Plugins/BuilderModes/General/BuilderPlug.cs
+4
-4
4 additions, 4 deletions
Source/Plugins/BuilderModes/General/BuilderPlug.cs
with
4 additions
and
4 deletions
Source/Plugins/BuilderModes/General/BuilderPlug.cs
+
4
−
4
View file @
db1db76b
...
...
@@ -348,7 +348,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
else
{
color
=
s
.
Fields
.
GetValue
(
"lightcolor"
,
-
1
);
color
=
PixelColor
.
Modulate
(
PixelColor
.
FromInt
(
s
.
Fields
.
GetValue
(
"lightcolor"
,
-
1
)),
PixelColor
.
FromInt
(
s
.
Fields
.
GetValue
(
"color_floor"
,
-
1
))).
ToInt
(
);
light
=
s
.
Fields
.
GetValue
(
"lightfloor"
,
0
);
absolute
=
s
.
Fields
.
GetValue
(
"lightfloorabsolute"
,
false
);
}
...
...
@@ -400,8 +400,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
else
{
color
=
s
.
Fields
.
GetValue
(
"lightcolor"
,
-
1
);
light
=
s
.
Fields
.
GetValue
(
"lightceiling"
,
0
);
color
=
PixelColor
.
Modulate
(
PixelColor
.
FromInt
(
s
.
Fields
.
GetValue
(
"lightcolor"
,
-
1
)),
PixelColor
.
FromInt
(
s
.
Fields
.
GetValue
(
"color_ceiling"
,
-
1
))).
ToInt
(
);
light
=
s
.
Fields
.
GetValue
(
"lightceiling"
,
0
);
absolute
=
s
.
Fields
.
GetValue
(
"lightceilingabsolute"
,
false
);
}
...
...
@@ -553,7 +553,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
PixelColor
lightcolor
=
PixelColor
.
FromInt
(
color
);
PixelColor
brightness
=
PixelColor
.
FromInt
(
General
.
Map
.
Renderer2D
.
CalculateBrightness
(
light
));
PixelColor
finalcolor
=
PixelColor
.
Modulate
(
lightcolor
,
brightness
);
color
=
finalcolor
.
WithAlpha
(
255
).
ToInt
();
color
=
finalcolor
.
WithAlpha
(
255
).
ToInt
();
// Do the math for all vertices
for
(
int
i
=
0
;
i
<
vertices
.
Length
;
i
++)
...
...
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