projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ce209
)
Problem computing specular value in OPCODE_LIT - pulled in value from
author
Karl Rasche
<karlrasche@gmail.com>
Sat, 13 Dec 2003 15:12:58 +0000
(15:12 +0000)
committer
Karl Rasche
<karlrasche@gmail.com>
Sat, 13 Dec 2003 15:12:58 +0000
(15:12 +0000)
vertex program execution of LIT
src/mesa/swrast/s_nvfragprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_nvfragprog.c
b/src/mesa/swrast/s_nvfragprog.c
index f34829e4f18ca1608207465708d9261695684097..22ff7ed889f3d51f3f7dede537226a7525303604 100644
(file)
--- a/
src/mesa/swrast/s_nvfragprog.c
+++ b/
src/mesa/swrast/s_nvfragprog.c
@@
-790,7
+790,7
@@
execute_program( GLcontext *ctx,
a[1] = 0.0F;
result[0] = 1.0F;
result[1] = a[0];
- result[2] = (a[0] > 0.0F) ? (GLfloat)
_mesa_pow(2.0, a[3]
) : 0.0F;
+ result[2] = (a[0] > 0.0F) ? (GLfloat)
exp(a[3] * log(a[1])
) : 0.0F;
result[3] = 1.0F;
store_vector4( inst, machine, result );
}