Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit cd54dd1d authored by PACANOWSKI Romain's avatar PACANOWSKI Romain

wrong implementation. code commented and replaced with false assertion

parent 2da34fe1
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <limits> #include <limits>
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <cassert>
#include <core/common.h> #include <core/common.h>
...@@ -86,13 +87,15 @@ void smith::save_body(std::ostream& out, const arguments& args) const ...@@ -86,13 +87,15 @@ void smith::save_body(std::ostream& out, const arguments& args) const
if(is_shader) if(is_shader)
{ {
out << std::endl; // out << std::endl;
out << "vec3 shadowing_smith(vec3 L, vec3 V, vec3 N, vec3 X, vec3 Y, vec3 R)" << std::endl; // out << "vec3 shadowing_smith(vec3 L, vec3 V, vec3 N, vec3 X, vec3 Y, vec3 R)" << std::endl;
out << "{" << std::endl; // out << "{" << std::endl;
out << "\tvec3 H = normalize(L + V);" << std::endl; // out << "\tvec3 H = normalize(L + V);" << std::endl;
out << "\treturn R + (vec3(1.0) - R) * pow(1.0f - clamp(dot(H,V), 0.0f, 1.0f), 5);" << std::endl; // out << "\treturn R + (vec3(1.0) - R) * pow(1.0f - clamp(dot(H,V), 0.0f, 1.0f), 5);" << std::endl;
out << "}" << std::endl; // out << "}" << std::endl;
out << std::endl; // out << std::endl;
std::cerr << " IMPLEMENT ME AT " << __FILE__ << " " << __LINE__ << std::endl;
assert(0);
} }
} }
......
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