![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Shader
Omnana123
这个作者很懒,什么都没留下…
展开
-
Loading效果之四Shader
Shader "Hidden/Loaing_04"{ Properties { _MainTex ("Texture", 2D) = "white" {} _Breath("Breath", Range(0, 1)) = 0.1 _Width("Width", Range(0, 1)) = 0.1 } SubShad...原创 2020-03-20 10:59:05 · 288 阅读 · 0 评论 -
Loading效果之三Shader
Shader "Hidden/Loading_02"{ Properties { _MainColor("MainColor", Color) = (1, 1, 1, 1) _RectWidth("RectWidth", Range(0, 1)) = 0.1 _RectHeight("RectHeight", Range(0, 1)...原创 2020-03-18 16:45:27 · 309 阅读 · 0 评论 -
Loading效果之二Shader
Shader "Hidden/LoadingEffect2"{ Properties { _BgColor("BgColor", Color) = (1, 1, 1, 1) _MainColor("MainColor", Color) = (1, 1, 1, 1) _Radius ("Radius", Range(0, 0.5)) ...原创 2020-03-17 14:10:48 · 261 阅读 · 0 评论 -
Loading效果之一Shader
Shader "Hidden/CircleAni"{ Properties { _Radius ("Radius", Range(0, 0.5)) = 0.1 _Width("Width", Range(0, 0.5)) = 0.1 _Breath ("Breath", float) = 1 _Num ("Num",...原创 2020-03-13 00:09:50 · 475 阅读 · 0 评论 -
实现一个圆角正多形蒙版
试着写了个正多边形蒙版,效果如下方法:(1)先画个正多边形alpha1(2)在每个内角处画个相切圆,求uv坐标是否每个圆面向多边形内角的那一方位上angleArea,求uv坐标到每个圆的原点的距离curR,求圆半径r,可得总的alpha2 += step(r, curR) * angleArea;(3)蒙版透明度为 alpha1 +alpha2;代码如下:...原创 2019-03-12 22:17:26 · 335 阅读 · 0 评论