Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 2324d389 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Correction of an error in the shader export of Lafortune

parent 306e6057
......@@ -5,7 +5,7 @@ CONFIG *= static \
plugin \
eigen
DESTDIR = ../../build
DESTDIR = ../build/lib
INCLUDEPATH += ../..
......
......@@ -471,7 +471,7 @@ void lafortune_function::save_body(std::ostream& out, const arguments& args) con
{
out << "vec3 lafortune(vec3 L, vec3 V, vec3 N, vec3 X, vec3 Y, vec3 Cx, vec3 Cy, vec3 Cz, vec3 Nl)" << std::endl;
out << "{" << std::endl;
out << "\tvec3 ext_dot = Cx * dot(L,X)*dot(V,X + Cy * dot(L,Y)*dot(V,Y) + Cz * dot(L,N)*dot(V,N);" << std::endl;
out << "\tvec3 ext_dot = Cx * dot(L,X)*dot(V,X) + Cy * dot(L,Y)*dot(V,Y) + Cz * dot(L,N)*dot(V,N);" << std::endl;
out << "\treturn pow(max(ext_dot, vec3(0,0,0)), Nl);" << std::endl;
out << "}" << std::endl;
out << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment