DXGL r526 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r525
|
r526
|
r527
>
Date:
20:46, 7 September 2014
Author:
admin
Status:
new
Tags:
Comment:
Don't dither the alpha channel.
Modified paths:
/ddraw/ShaderGen3D.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/ShaderGen3D.cpp
—
—
@@ -455,11 +455,9 @@
456
456
limit.r = (threshold[x + (y * 8)]) / ((pow(2.0, float(ditherbits.r)) - 1.0)*64.0);\n\
457
457
limit.g = (threshold[x + (y * 8)]) / ((pow(2.0, float(ditherbits.g)) - 1.0)*64.0);\n\
458
458
limit.b = (threshold[x + (y * 8)]) / ((pow(2.0, float(ditherbits.b)) - 1.0)*64.0);\n\
459
- limit.a = (threshold[x + (y * 8)]) / ((pow(2.0, float(ditherbits.a)) - 1.0)*64.0);\n\
460
459
color.r += limit.r;\n\
461
460
color.g += limit.g;\n\
462
461
color.b += limit.b;\n\
463
- color.a += limit.a;\n\
464
462
color.r *= pow(2.0, float(ditherbits.r)) - 1.0;\n\
465
463
color.r = floor(color.r);\n\
466
464
color.g *= pow(2.0, float(ditherbits.g)) - 1.0;\n\
—
—
@@ -466,12 +464,9 @@
467
465
color.g = floor(color.g);\n\
468
466
color.b *= pow(2.0, float(ditherbits.b)) - 1.0;\n\
469
467
color.b = floor(color.b);\n\
470
- color.a *= pow(2.0, float(ditherbits.a)) - 1.0;\n\
471
- color.a = floor(color.a);\n\
472
468
color.r /= pow(2.0, float(ditherbits.r)) - 1.0;\n\
473
469
color.g /= pow(2.0, float(ditherbits.g)) - 1.0;\n\
474
470
color.b /= pow(2.0, float(ditherbits.b)) - 1.0;\n\
475
- color.a /= pow(2.0, float(ditherbits.a)) - 1.0;\n\
476
471
return color;\n\
477
472
}\n";
478
473
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version