吃雞 毒圈展示

2022-07-30 11:00:18 字數 1816 閱讀 5735

<1>2種圈,1個場景,1個ui

<2>場景毒圈

美術製作圓柱形網格,上下剔除,圓柱側面面越多越好(記憶體渲染會多占用點)

shader實現:uv動畫(寫得不好)

shader "wk/particles/additivegas" 

_flashtex ("flash texture", 2d) = "white" {}

_invfade ("soft particles factor", range(0.01,3.0)) = 1.0

}category

blend srcalpha one

alphatest greater .01

colormask rgb

cull off lighting off zwrite off fog

bindchannels

// ---- fragment program cards

subshader ;

struct v2f ;

float4 _maintex_st;

sampler2d _cameradepthtexture;

float _invfade;

fixed4 frag (v2f i) : color

endcg

} }

// ---- dual texture cards

subshader

settexture [_maintex]

} }// ---- single texture cards (does not do color tint)

subshader

} }}}

<3>ui毒圈

ui有乙個毒圈範圍和乙個安全區範圍顯示在地圖上

試了一些辦法,還是用shader實現

計算好半徑,設定shader屬性

shader "ui/ui-circle" 

_color ("tint", color) = (1,1,1,1)

_stencilcomp ("stencil comparison", float) = 8

_stencil ("stencil id", float) = 0

_stencilop ("stencil operation", float) = 0

_stencilwritemask ("stencil write mask", float) = 255

_stencilreadmask ("stencil read mask", float) = 255

_circlewidth("cull radius",float) = 0.49

_colormask ("color mask", float) = 15

} subshader

stencil

cull off

lighting off

zwrite off

ztest [unity_guiztestmode]

fog

blend srcalpha oneminussrcalpha

colormask [_colormask]

pass

; struct v2f

;fixed4 _color;

float _circlewidth;

//sampler2d _maintex;

fixed4 frag(v2f in) : sv_target

clip (color.a - 0.01);

return color;

}endcg

} }}

大吉大利 今晚吃雞 跑毒

現在有一款很火的遊戲playerunknown s battlegrounds,人稱 吃雞 在裡面經常面臨跑毒 從安全區外跑進安全區內 的問題,在安全區外,人們會處於中毒狀態,每秒會掉a 血,人們可以通過使用道具急救包把血量公升回到80 使用急救包需要原地站著6秒。現在知道在安全區外扣血速度為a s...

吃雞遊戲 18 11 24

吃雞成癮。為此他決定逃課吃雞!但是學校有規定,曠課到一定次數,是不給予期末考的資格的。因此 決定每門課最多逃兩次。現在告訴你,乙個學期有 nnn 節課程,第 iii 節課的科目是 sis isi 時間為 tit iti 你需要告訴 這個學期他逃課吃雞的最大時間是多少。第一行給出乙個整數n 1 n 1...

最新吃雞神器 蘇寧HLA超品日解鎖吃雞新姿勢

俗話說,兵馬未動,糧草先行。在吃雞戰場什麼最重要?當然是裝備!手持98nydmkbltk,抱著 8 倍鏡,正面交鋒的時候心裡才會穩。在人生戰場也是如此,小哥哥們要有一套既合身得體又風度摩登的 才能算是時尚先生,畢竟是人靠衣裳馬靠鞍嘛!作為國內最早一批時尚 品牌,近幾年,海瀾之家在保證對原有群體服務不...