Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aa344fc8
Commit
aa344fc8
authored
Sep 28, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use float function in D3DXFresnelTerm().
parent
e420409b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
math.c
dlls/d3dx9_36/math.c
+5
-4
No files found.
dlls/d3dx9_36/math.c
View file @
aa344fc8
...
...
@@ -81,13 +81,14 @@ FLOAT WINAPI D3DXFresnelTerm(FLOAT costheta, FLOAT refractionindex)
{
FLOAT
a
,
d
,
g
,
result
;
TRACE
(
"
(%f,
%f)
\n
"
,
costheta
,
refractionindex
);
TRACE
(
"
costheta %f, refractionindex
%f)
\n
"
,
costheta
,
refractionindex
);
g
=
sqrt
(
refractionindex
*
refractionindex
+
costheta
*
costheta
-
1
.
0
f
);
g
=
sqrt
f
(
refractionindex
*
refractionindex
+
costheta
*
costheta
-
1
.
0
f
);
a
=
g
+
costheta
;
d
=
g
-
costheta
;
result
=
(
costheta
*
a
-
1
.
0
f
)
*
(
costheta
*
a
-
1
.
0
f
)
/
(
(
costheta
*
d
+
1
.
0
f
)
*
(
costheta
*
d
+
1
.
0
f
)
)
+
1
.
0
f
;
result
=
result
*
0
.
5
f
*
d
*
d
/
(
a
*
a
);
result
=
(
costheta
*
a
-
1
.
0
f
)
*
(
costheta
*
a
-
1
.
0
f
)
/
((
costheta
*
d
+
1
.
0
f
)
*
(
costheta
*
d
+
1
.
0
f
))
+
1
.
0
f
;
result
*=
0
.
5
f
*
d
*
d
/
(
a
*
a
);
return
result
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment