Add SkyBox background mode
Implemented by sampling the light probe texture onto a quad that fills the entire screen, which uses an equirectangular projection. In the future we might want to consider using separate textures, and/or different projections. There are some minor issues with texture gradients and equirectangular projections. These have been worked around by setting the gradients to zero, which is not optimal, but works OK in practice. If we switch to using texture cubes instead of equirectangular projections, these issues can be avoided.
Showing
- src/quick3d/qdemonsceneenvironment.h 2 additions, 1 deletionsrc/quick3d/qdemonsceneenvironment.h
- src/runtimerender/graphobjects/qdemonrenderlayer.h 3 additions, 1 deletionsrc/runtimerender/graphobjects/qdemonrenderlayer.h
- src/runtimerender/rendererimpl/qdemonrendererimpl.h 2 additions, 0 deletionssrc/runtimerender/rendererimpl/qdemonrendererimpl.h
- src/runtimerender/rendererimpl/qdemonrendererimpllayerrenderdata.cpp 57 additions, 24 deletions...render/rendererimpl/qdemonrendererimpllayerrenderdata.cpp
- src/runtimerender/rendererimpl/qdemonrendererimpllayerrenderdata.h 1 addition, 0 deletions...merender/rendererimpl/qdemonrendererimpllayerrenderdata.h
- src/runtimerender/rendererimpl/qdemonrendererimplshaders.cpp 70 additions, 0 deletionssrc/runtimerender/rendererimpl/qdemonrendererimplshaders.cpp
- src/runtimerender/rendererimpl/qdemonrendererimplshaders.h 19 additions, 0 deletionssrc/runtimerender/rendererimpl/qdemonrendererimplshaders.h
Loading