Many shader instructions are calculated on every pixel by default. However, we often don't need per-pixel details for every instruction.
The Vertex Interpolator is a less known node which can improve the performance of almost any shader by forcing certain instructions to run per vertex instead. Since there will almost always be fewer vertices than pixels on a given mesh visible at any given moment, this is usually a net gain in performance.
However, certain instructions must be performed per pixel, like most texture samples, or else a loss in visual quality will occur. Be sure to profile your shader with the complexity view-mode to ensure you are lowering the complexity.
Shown in UE5 preview 2, but works in most versions.
Негізгі бет This one node makes almost any shader faster. (Unreal Engine)
Пікірлер: 8