發表文章

目前顯示的是有「Unity」標籤的文章

賀正Sakura / Happy New Year 2020

圖片
For everyone, Happy New Year 2020 Unity 2018.2.4f1 Amplify shader editor 1.7.0 Full Size

TV Effect 電視效果包

圖片
這包Shader是使用Unity內建的Shader graph工具製作,並且是在LWRP環境下運作。 裡面主要是想製作放置於場景中電視持續的效果表現,利用SHADER的使原本只能靠靜態單圖變成有許多的動態,如此可使場景中的視覺效果更加豐富。 之中白躁點雜訊的製作方法我也刻意使用了不同的方式製作,有完全靠數學計算出的雜訊值、也有靠一張雜訊紋理貼圖來計算、以及利用Shader graph內建的procedural 程序式生成的雜訊等方法製作,因此在這包效果中也可以發現許多有趣的Shader效果的串接方式有利於學習基礎Shader的運用喔。 完整展示影片Full demo video https://youtu.be/AdoJGE6Usds 因作者懶於持續跟上UNITY版本更新 已移除下載 敬請見諒 有興趣者可改至UE4 Marketplace購買 https://www.unrealengine.com/marketplace/en-US/product/tv-effect-noise   https://www.unrealengine.com/marketplace/en-US/product/tv-effect-glitch

Shader Math (04) Basic Shader Mask

圖片
Shader Math (04) / Basic Shader Mask   一些基礎常見的Shader 遮罩 01  02 03   04  05 06 07 08 09 10

Shader Math (03) Radar World Grid 雷達掃描

圖片
雷達掃描 Radar World Grid DEMO VIDEO https://youtu.be/IPES56mTrUM   Shader by Amplify shader editor Full Size

Shader Math (02) Hexagon Grid 六角形

圖片
六角形網格 Hexagon Grid 原尺寸FullSize 雜訊貼圖也可以用noise generator替代,但會略增計算量。 The noise texture can be replaced noise generator. But it will cost a little bit performance.

Zelda Stylize Camp Fire 薩爾達風格營火特效

圖片
Youtube影片連結 主要由三組元件構成,依序是火星、營火本體、煙霧。 Here is three elemnts : Fire embers、Camp fire、Smoke。 環境Unity 2018.2.4 及使用 PostProcessing的Bloom。 Amplify shader editor 1.6.7製作Shader。 Substance designer 2018 製作貼圖。 Build in Unity 2018.2.4 with PostProcessing for bloom. Amplify shader editor 1.6.7 for shader. Substance designer 2018 for texture. 營火 Camp Fire 首先說明營火的製作方式,製作一張RGBA通道的貼圖,分別為 R=營火中心、G=營火外圍、BA=營火擾動的雜訊。 In the beginning, we need a texture for shader of camp fire. Included RGBA: R for the center of camp fir、G for the outside of fire、B and A for the distortion.   貼圖導入Unity中須設定成Clamp The texture setting has to be clamp warp mode. 接著開始進行製作營火的Shader, 下面這張圖是此Shader的全貌,基本上只做一件事情就是透過流動貼圖(Flow Map)的概念來實現營火擾動的效果,分為核心營火(R通道)擾動較小及外圍營火(G通道)擾動較大兩組,再將兩者相加來實現火焰的豐富性,最後就是基礎的顏色添加。 Here is the full graph of camp fire shader. The main point is to create the UV distortion within the flow map. I make it to be two value, one is the low distortion work for the center fire (R ch...

RzFX Hologram Effect 科幻風投影物件

圖片
Demo Video 此檔案可以透過Buy me a coffee 取得,內容包含SHADER完整的編輯檔可透過Amplify shader editor 1.5.8開啟編輯,也包含完整個SHADER截圖方便觀看,建議使用Unity 2018.2.4以上開啟。 Here is the full package that included a prefab and shader and shader snapshot, shader could be edited at Amplify shader editor 1.5.8. Build in Unity 2018.2.4 or higher. Download Link https://bmc.xyz/l/hgRzOBNli 感謝支持囉!  Thank you! Enjoy it :)

Shader Math (01)

圖片
螺旋圖形 Swirl Shader Unity 2018.2.4 + shader Graph FullSize

Shader: Sin wave trail 波形擺動拖尾效果

圖片
大家好! 今天跟大家分享先前製作的效果Ghost Trail 波形擺動拖尾效果。 Hi, everyone. I`m glad to share the breakdown of the Ghost Trail Effect. 在這此效果中僅使用了一組粒子系統搭配其中的Trail組件及模型粒子來實現,而如何透過一組Trail面板來實現看似三條拖尾的擺動效果,正是此Shader表現的重點。 It was done with just a particle system, and it is particle mesh render within trail component. The issue of the effect is how to create three different swing trail on a single plane. Shader是使用Amplify Shader Editor1.5.8 製作亦可使用內建Shader graph實現,先看一下整個Shader樹狀圖。 The shader is made by Amplify shader editor 1.5.8. It also could do it with shader graph in Unity. 大圖Full Size 貼圖使用Substance Designer 2018  Texture made by Substance designer 2018 R: 拖尾紋理1 / for trail 1. G: 拖尾紋理2 / for trail 2. B: 拖尾擾動 / the noise of distortion. A: 消散雜訊紋理 / the noise for dissolve. 大圖Full Size Shader的製作 Breakdown of shader 1.基礎Shader屬性設定 Setting property  2.Shader大圖中Sin01的區塊為擺動UV的產生,Sin02及03僅是重複01計算後,改變其波長頻率時間等來製作三種不同擺幅 。 The Sin01 block is working for the motion of V coo...