
Shader实用效果
Shader实用效果
Hello Bug.
记录一点点
展开
-
Shader——黑幕过场效果
一:效果演示二:实现Shader:黑幕过场着色器//黑幕过场着色器Shader "Custom/BlackScreenSpread"{ Properties { _Color("Main Color", Color) = (1,1,1,1) _MainTex("Base (RGB)", 2D) = "white" {} _Radius("Radius",float)=1.5 _Center_X("Center_X", float) =0.5 _Center.原创 2020-11-06 13:40:13 · 3373 阅读 · 1 评论 -
Shader——漩涡效果
一:效果演示二:实现Shader:漩涡着色器//漩涡着色器Shader "Custom/Swirl"{ Properties { [PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {} _Color("Tint", Color) = (1,1,1,1) [MaterialToggle] PixelSnap("Pixel snap", Float) =原创 2020-11-05 17:55:53 · 3202 阅读 · 2 评论 -
Shader——热扰动效果
一:效果演示二:实现Shader:热扭曲着色器//基于PostEffect的热扭曲着色器Shader "Distortion(PostEffect)"{ Properties { _MainTex("Base (RGB)", 2D) = "white" {} } SubShader { Zwrite Off Cull Off Pass { CGPROGRAM #pragma vertex vert_img #pragma fr.原创 2020-11-05 16:48:29 · 4055 阅读 · 0 评论 -
Shader——UI流光效果
一:效果演示二:实现Shader "Unlit/lighting"{ Properties { _MainTex ("Texture", 2D) = "white" {} //速度 默认左->右 _Speed ("Speed", range(-2, 2)) = 1.04 //宽度 _Width ("Width", range(1, 10)) = 5.83 //角度 _Angle ("Angle", range(-1, 1)) = 0.33原创 2020-08-25 14:17:27 · 3188 阅读 · 0 评论 -
Shader——水面效果
Shader "Custom/Water"{ Properties { _Tint("Tint", Color) = (1, 1, 1, .5) _MainTex("Main Texture", 2D) = "white" {} _MainDistortionFactor("Main Distortion Factor", Range(0,10)) = 1 _Amount("Wave Amount", Range(0,1)) = 0.5 _Height("Wave Heig...原创 2020-07-29 14:32:57 · 3055 阅读 · 0 评论 -
Shader——地上画圆效果
Shader "Custom/GroundCircl"{Properties { _Color("Color", Color) = (1,1,1,1) _MainTex("Albedo (RGB)", 2D) = "white" {} _Center("Center", Vector) = (0,0,0,0)//圆的中心...原创 2020-03-25 16:32:20 · 1506 阅读 · 0 评论 -
Shader——自发光效果
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'Shader "Custom/OutLightting" { Properties {...原创 2020-03-25 15:38:33 · 3494 阅读 · 3 评论 -
Shader——3D流光效果
一:流动光效效果Shader "Custom/Flow" { Properties { _MainTex ("Texture", 2D) = "white" {} _WaveSpeed("贴图移速",float)=3 } SubShader { Blend One ONE CULL...原创 2020-03-25 15:18:41 · 3028 阅读 · 1 评论 -
Shader——消融效果
一:使用两种颜色混合消融Shader "Custom/Dissolve"{ Properties { _MainTex ("Texture", 2D) = "white" {}//主贴图 _NoiseTex("Noise", 2D) = "white" {}//噪音贴图 _Threshold("Threshold", Ra...原创 2020-03-25 13:08:07 · 2052 阅读 · 0 评论