Overview:

The same result as this pack offers can be achieved with the IF node albeit with a performance detriment as this pack uses pure arithmetic.

The reason why the the IF node is slow is that it creates a branch which is somewhat fine for the CPU as they are able to predict branching, however due to architectural differences the GPU literally is not capable of doing so, which causes a major slowdown as some cores do one set of instruction, some do another, and/or some do none which is horrible, which is why this approach is a lot better as it relies on mathematics which is what GPUs and CPUs are really good at.

Features:

  • Absolutely performant! The functions do not use “if” nodes.
  • Isolate the red, green, blue, yellow, magenta, cyan and alpha from a texture object or colour value.
  • Isolate only red, or green, or blue, or yellow, or magenta, or cyan from a texture or colour value.
  • Isolate any colour from a texture or colour value.

Number of Unique Static Meshes: 1

Number of Unique Materials and Material Instances: 7

Number of Unique Material Functions: 18

Number of Textures: 4

Texture Resolutions:

  • 2 – 128×128
  • 1 – 256×256
  • 1 – 4096×4096

NOTE: All textures, materials and meshes are only made to give example and showcase the nodes of this asset pack.

This product supports Nanite for Unreal Engine 5.0+

概览:

与此包提供的相同结果可以通过IF节点实现,尽管性能会受到损害,因为此包使用纯算术。

IF节点速度慢的原因是它创建了一个分支,这对于CPU来说有点好,因为它们能够预测分支,但是由于架构差异,GPU实际上无法这样做,这会导致重大减速,因为一些核心执行一组指令,一些执行另一组指令,和/或一些执行任何操作,这是可怕的,这就是为什么这种方法更好,因为它依赖于数学,这是Gpu和Cpu真正擅长的。

特征:

  • 绝对表演! 这些函数不使用”if”节点。
  • 将红色、绿色、蓝色、黄色、品红色、青色和alpha与纹理对象或颜色值隔离。
  • 从纹理或颜色值中仅隔离红色、绿色、蓝色、黄色、品红色或青色。
  • 将任何颜色与纹理或颜色值隔离。

唯一静态网格体的数量: 1

唯一材质和材质实例数:7

唯一材质函数数: 18

纹理数量: 4

纹理分辨率:

  • 2-128×128
  • 1-256×256
  • 1-4096×4096

注意:所有纹理、材质和网格仅用于举例和展示此资源包的节点。

本产品支持Nanite for Unreal Engine5.0+










Showcase Video Link: Multi-Color Masking Showcase

The material functions allow for the user to mask out individual colours of a texture or some colour value and manipulate that mask to your needs, traditionally you could extrapolate the red, green, blue and alpha channel of a texture, this pack takes a step further!

The pack allows for extraction additionally yellow, magenta and cyan coloured pixels of a texture, and as well as isolating a very specific colour which in turn allows for more customizability, modularity and less head aches down the road.

展示视频链接: 多色屏蔽展板

材质函数允许用户屏蔽纹理的单个颜色或某些颜色值,并根据您的需要操作该蒙版,传统上您可以推断纹理的红色,绿色,蓝色和alpha通道,这个包更进一步!

该包允许提取额外的黄色,品红色和青色像素的纹理,以及隔离一个非常具体的颜色,这反过来允许更多的定制性,模块化和减少头部疼痛的道路。

声明:本站所有资源都是由站长从网络上收集而来,如若本站内容侵犯了原著者的合法权益,可联系站长删除。