Skip to content
Snippets Groups Projects
Commit 9b06aca9 authored by Mathias Paulin's avatar Mathias Paulin :speech_balloon:
Browse files

By default, custom pass export tangent field

parent a723abe4
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class NodeBasedRenderer_LIBRARY_API VisualizationController
"else { finalColor = (diffColor + specColor) * max(lightDir.z, 0) \n"
" * lightContributionFrom(light, getWorldSpacePosition().xyz); }\n"
"#ifdef EXPORT_VECTOR_FIELD\n"
"out_vector_field = vec4(getWorldSpaceTangent(), 1);\n"
"out_vector_field = vec4(getWorldSpaceTangent()*0.5+0.5, 1);\n"
"#endif\n"
"return vec4( finalColor, 1); \n"
"}\n"};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment