Details
-
Task
-
Resolution: Won't Do
-
P2: Important
-
6.0.0
-
None
-
3
-
4b444d5b2567c20c23ca0f315163d63a95d5f5c9 (qt/tqtc-qtquick3d/dev)
Description
With the PrincipledMaterial it is possible to use the same texture for:
OcclusionMaps
RoughnessMaps
MetalnessMaps
OpacityMaps
By setting the color channel which that property is sampled from. While the same texture memory is used for each usage, a separate sampler is created for each property. There is not an unlimited amount of Samplers available for materials at runtime, and we should not be so wasteful.
Instead we should find a way to use the same sampler when these material properties share the same texture source.