DXGL r403 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r402
|
r403
|
r404
>
Date:
19:27, 2 September 2013
Author:
admin
Status:
new
Tags:
Comment:
Properly bias 8-bit texture lookups to center of texel. Tested compatible with GeForce 6200 card on XP.
Modified paths:
/ddraw/shaders.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/shaders.cpp
—
—
@@ -48,7 +48,7 @@
49
49
void main() \n\
50
50
{ \n\
51
51
vec4 myindex = texture2D(tex0, gl_TexCoord[0].xy); \n\
52
- vec2 index = vec2((myindex.x*((255.0/256.0)+(0.5/256.0))),0.5);\n\
52
+ vec2 index = vec2(((myindex.x*(255.0/256.0))+(0.5/256.0)),0.5);\n\
53
53
vec4 texel = texture2D(pal, index); \n\
54
54
gl_FragColor = texel; \n\
55
55
} ";
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