- Unreal Engine 4 Shaders and Effects Cookbook
- Brais Brenlla Ramos John P. Doran
- 184字
- 2021-06-24 14:12:19
There's more...
We've seen how to use masks to drive the appearance of a material in the previous section. With that said, there's a limitation to that technique with regards of masking—having three or four different channels per texture means that we can have as many masks per image at most. Even though this is sometimes enough, there are always situations where we are bound to want more masks. In those situations, we can either use another image (which would give us three or four extra masks) or use a different technique—color masking.
That last method is one we haven't explored, as it isn't native to Unreal, but it can certainly be useful. The only thing we need to do is have a color texture where each individual color masks an area we want to operate on, as in the following screenshot:

The idea is to color pick from the colored texture the areas that we want to apply a certain effect on. If this is of interest, you can find more information about that at the following link: https://answers.unrealengine.com/questions/191185/how-to-mask-a-single-color.html.
- Vue 3移動Web開發與性能調優實戰
- Python數據分析基礎
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Raspberry Pi for Secret Agents(Third Edition)
- Windows Presentation Foundation Development Cookbook
- Learn WebAssembly
- 深度學習:算法入門與Keras編程實踐
- 零基礎入門學習Python
- C++從入門到精通(第5版)
- Python機器學習:預測分析核心算法
- Python 3.7從入門到精通(視頻教學版)
- 快速入門與進階:Creo 4·0全實例精講
- JavaScript機器人編程指南
- Arduino可穿戴設備開發
- ASP.NET求職寶典