Welcome,
Guest
. Please
login
or
register
.
February 09, 2023, 01:20:52 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Modify of shader and scrollview donot clip
« previous
next »
Print
Pages: [
1
]
Author
Topic: Modify of shader and scrollview donot clip (Read 1472 times)
lzt120
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 68
Modify of shader and scrollview donot clip
«
on:
March 26, 2015, 12:06:46 AM »
I modify the shader of "Unlit/Transparent Colored" as below list but this lead to that scroll-view does not clip any more when I am dragging. How can I fixed this ?
//_GreyColor("GreyColor", Color) = (0.299, 0.587, 0.114,1)
if
(
i
.
color
.
r
<
0.001
)
{
col
=
tex2D
(
_MainTex, i
.
texcoord
)
;
float
grey
=
dot
(
col
.
rgb
, float3
(
_GreyColor
.
r
,_GreyColor
.
g
,_GreyColor
.
b
)
)
;
col
.
rgb
=
float3
(
grey, grey, grey
)
;
}
else
{
col
=
tex2D
(
_MainTex, i
.
texcoord
)
*
i
.
color
;
}
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Modify of shader and scrollview donot clip
«
Reply #1 on:
March 27, 2015, 10:53:40 PM »
Unlit/Transparent Colored shader doesn't do clipping. Clipping happens in the numbered versions of this shader such as Unlit - Transparent Colored 1.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Modify of shader and scrollview donot clip