Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 UI 中重新创建行为类似于径向填充图像的着色器。
这是 URP Unlit 着色器:
但是有一个问题。我想将我的 alpha 输出限制为 0 或 1,因为结果是灰度,会产生不需要的外观。所以,地板是!不?步?不?看看它会产生什么,那种奇怪的粉红色癫痫。
有人可以帮助我避免这种情况发生吗?
谢谢!
PS。好的,我想通了。这是因为角度梯度。所以我决定不使用渐变,这种形状在重叠之前一直有效。我应该使用什么形状来重新创建径向填充图像效果?
好的,我已经成功创建了径向填充着色器