实现一种在小尺度下快速增量像素孤岛连通分量标记算法,该算法可以高效实现在多个属性混合的情况下在目标区域内得到一个不会与其他所有属性交叉的中性点。
This commit is contained in:
@@ -75,9 +75,10 @@ Shader "Hidden/XericLibrary/GeoLayerPicker/ScreenOverrideRect"
|
||||
}
|
||||
|
||||
// 将世界坐标映射为可见颜色
|
||||
float3 debugColor = frac(col.rgb * 0.1);
|
||||
float matIDColor = frac(col.a * 0.05);
|
||||
debugColor.r = lerp(debugColor.r, matIDColor, 0.5);
|
||||
float3 debugColor = abs(sin(col.rgb * float3(0.03, 0.1, 0.05))) * 0.5;
|
||||
float3 debugColor2 = abs(cos(col.rgb * float3(0.05, 0.09, 0.07))) * 0.5 + 0.5;
|
||||
float matIDColor = frac(col.a * 0.07);
|
||||
debugColor = lerp(debugColor, debugColor2, matIDColor);
|
||||
return float4(debugColor, 0.9);
|
||||
}
|
||||
ENDHLSL
|
||||
|
||||
Reference in New Issue
Block a user