wined3d: Implement more GLSL instructions
Chris
chris.kcat at gmail.com
Fri Jul 21 16:20:45 CDT 2006
On Friday 21 July 2006 11:19, Jason Green wrote:
> + /* Calculate reflection vector (Assume normal is normalized): RF =
2*(N.E)*N -E */
> + shader_addline(buffer, "tmp0.w = dot(vec3(tmp0), %s);\n", src1_str);
> + shader_addline(buffer, "tmp0 = tmp0.w * tmp0;\n");
> + shader_addline(buffer, "tmp0 = (2.0 * tmp0) - %s;\n", src1_str);
I'm hardly an expert, but couldn't this be simplified to:
shader_addline(buffer, "tmp0 = reflect(-%s, vec3(tmp0));\n", src1_str);
More information about the wine-devel
mailing list