occt: master 78607702

Author Committer Branch Timestamp Parent
iko bugmaster master 2020-01-21 13:01:03 master 6216ed57
Affected Issues  0031275: Visualization, TKOpenGl - handle normal-map texture with Path-Tracing
Changeset 0031275: Visualization, TKOpenGl - handle normal-map texture with Path-Tracing

Base normal map support has been implemented in path tracing (just geometry normal replacement).
Smooth normal adaptation has been implemeneted in order to avoid black areas artefacts during path tracing.
Tangent normal space calcuation has been moved to separate unified function.
Tangent space orthogonalization algorithm has been changed in order to handle all orientations and combinations of UV coordinates.
mod - src/Graphic3d/Graphic3d_RenderingParams.hxx Diff File
mod - src/OpenGl/OpenGl_ShaderManager.cxx Diff File
mod - src/OpenGl/OpenGl_View.hxx Diff File
mod - src/OpenGl/OpenGl_View_Raytrace.cxx Diff File
mod - src/Shaders/FILES Diff File
mod - src/Shaders/PathtraceBase.fs Diff File
mod - src/Shaders/PointLightAttenuation.glsl Diff File
mod - src/Shaders/RaytraceBase.fs Diff File
mod - src/Shaders/Shaders_PathtraceBase_fs.pxx Diff File
mod - src/Shaders/Shaders_RaytraceBase_fs.pxx Diff File
add - src/Shaders/Shaders_TangentSpaceNormal_glsl.pxx Diff File
add - src/Shaders/TangentSpaceNormal.glsl Diff File
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx Diff File
add - tests/v3d/raytrace/normal_map Diff File