您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
66 行
1.5 KiB
66 行
1.5 KiB
Shader "UIWidgets/canvas_fill1"
|
|
{
|
|
Properties {
|
|
_SrcBlend("_SrcBlend", Int) = 1 // One
|
|
_DstBlend("_DstBlend", Int) = 10 // OneMinusSrcAlpha
|
|
}
|
|
|
|
SubShader {
|
|
ZTest Always
|
|
ZWrite Off
|
|
Blend [_SrcBlend] [_DstBlend]
|
|
|
|
Stencil {
|
|
Ref 0
|
|
Comp NotEqual
|
|
ReadMask 127
|
|
WriteMask 127
|
|
Pass Zero
|
|
}
|
|
|
|
Pass { // 0, color
|
|
CGPROGRAM
|
|
#define UIWIDGETS_COLOR
|
|
#include "UIWidgets_canvas.cginc"
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
ENDCG
|
|
}
|
|
|
|
Pass { // 1, linear
|
|
CGPROGRAM
|
|
#define UIWIDGETS_LINEAR
|
|
#include "UIWidgets_canvas.cginc"
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
ENDCG
|
|
}
|
|
|
|
Pass { // 2, radial
|
|
CGPROGRAM
|
|
#define UIWIDGETS_RADIAL
|
|
#include "UIWidgets_canvas.cginc"
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
ENDCG
|
|
}
|
|
|
|
Pass { // 3, sweep
|
|
CGPROGRAM
|
|
#define UIWIDGETS_SWEEP
|
|
#include "UIWidgets_canvas.cginc"
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
ENDCG
|
|
}
|
|
|
|
Pass { // 4, image
|
|
CGPROGRAM
|
|
#define UIWIDGETS_IMAGE
|
|
#include "UIWidgets_canvas.cginc"
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
ENDCG
|
|
}
|
|
}
|
|
}
|