Handle anisotropy in the PBR shader
Add two options to vtkProperty, and link them to OSPray: * anisotropy (between 0 and 1) that controls the strength of the anisotropy. It will be possible to use a texture to hold this value (WIP). * rotation (between 0 and 1) that rotate the direction of the anisotropy (ie. the tangent) around the normal counter-clockwise. A value of 1 correspond to a rotation of 2*PI. If needed, the rotation is done is the fragment shader because it allows the user to pass the rotaion as a texture value.
Showing
- Documentation/release/dev/AnisotropyPBR.md 7 additions, 0 deletionsDocumentation/release/dev/AnisotropyPBR.md
- Rendering/Core/vtkProperty.cxx 11 additions, 2 deletionsRendering/Core/vtkProperty.cxx
- Rendering/Core/vtkProperty.h 40 additions, 4 deletionsRendering/Core/vtkProperty.h
- Rendering/OpenGL2/Testing/CMakeLists.txt 1 addition, 0 deletionsRendering/OpenGL2/Testing/CMakeLists.txt
- Rendering/OpenGL2/Testing/Cxx/CMakeLists.txt 1 addition, 0 deletionsRendering/OpenGL2/Testing/Cxx/CMakeLists.txt
- Rendering/OpenGL2/Testing/Cxx/TestPBRAnisotropy.cxx 155 additions, 0 deletionsRendering/OpenGL2/Testing/Cxx/TestPBRAnisotropy.cxx
- Rendering/OpenGL2/Testing/Cxx/TestPBRMapping.cxx 15 additions, 1 deletionRendering/OpenGL2/Testing/Cxx/TestPBRMapping.cxx
- Rendering/OpenGL2/Testing/Data/Baseline/TestPBRAnisotropy.png.sha512 1 addition, 0 deletions...penGL2/Testing/Data/Baseline/TestPBRAnisotropy.png.sha512
- Rendering/OpenGL2/Testing/Data/Baseline/TestPBRMapping.png.sha512 1 addition, 1 deletion...g/OpenGL2/Testing/Data/Baseline/TestPBRMapping.png.sha512
- Rendering/OpenGL2/vtk.module 1 addition, 0 deletionsRendering/OpenGL2/vtk.module
- Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx 232 additions, 69 deletionsRendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx
- Rendering/OpenGL2/vtkToneMappingPass.h 1 addition, 1 deletionRendering/OpenGL2/vtkToneMappingPass.h
- Rendering/RayTracing/vtkOSPRayPolyDataMapperNode.cxx 81 additions, 36 deletionsRendering/RayTracing/vtkOSPRayPolyDataMapperNode.cxx
- Testing/Data/anisotropyTex.png.sha512 1 addition, 0 deletionsTesting/Data/anisotropyTex.png.sha512
- Testing/Data/vtk_Anisotropy.png.sha512 1 addition, 0 deletionsTesting/Data/vtk_Anisotropy.png.sha512
Loading
Please register or sign in to comment