当前位置: 首页 > news >正文

网站开发的毕业设计论文框架网站秒收录

网站开发的毕业设计论文框架,网站秒收录,拼多多的网站建设,宝鸡市网站建设不做UI不知道,没想到时至今日,ugui居然没有sliced filled image模式,用circle做filled,不能用sliced九宫格图,导致每次使用这个效果必须一张新图,何其浪费资源。 原始功能如下: 我…

      不做UI不知道,没想到时至今日,ugui居然没有sliced filled image模式,用circle做filled,不能用sliced九宫格图,导致每次使用这个效果必须一张新图,何其浪费资源。
      原始功能如下:
在这里插入图片描述
      我觉得还是自己写shader解决这个问题比较方便,原理很简单,通过frag函数逐uv扫描中心pixel坐标与uv pixel坐标的朝向向量,与轴向量(比如up direction)的夹角,从0-360度限制discard像素即可。
      唯一注意事项就是:夹角的正负值计算问题,这里我们用叉积判断正负值即可(unity右手坐标系扩展z轴)
      直接上代码:

Shader "UI360FilledAndSliced/UI360FilledUnlitShader"
{Properties{_MainTex ("Texture", 2D) = "white" {}_Axis("Axis",vector) = (0,0.5,0,0)_Degree("Degree",Range(0,360)) = 0}SubShader{Tags { "RenderType"="Transparent" "Queue"="Transparent" }LOD 100Pass{Blend SrcAlpha OneMinusSrcAlphaCGPROGRAM#pragma vertex vert#pragma fragment frag#define RAD2DEG 57.29578#include "UnityCG.cginc"struct appdata{float4 vertex : POSITION;float2 uv : TEXCOORD0;};struct v2f{float2 uv : TEXCOORD0;float4 vertex : SV_POSITION;};sampler2D _MainTex;float4 _MainTex_ST;float2 _Axis;float _Degree;v2f vert (appdata v){v2f o;o.vertex = UnityObjectToClipPos(v.vertex);o.uv = TRANSFORM_TEX(v.uv, _MainTex);return o;}//unity右手坐标系//获取夹角正负值//左手定则float getClampPM(float2 f,float2 t){float3 f3 = float3(f,0);float3 t3 = float3(t,0);float3 n3 = cross(f3,t3);return n3.z;}//计算夹角//左手定则float getClampDegree(float2 f,float2 t){float cos = dot(f,t)/(length(f)*length(t));float deg = acos(cos)*RAD2DEG;float pm = getClampPM(f,t);if(pm>0){deg = 360-abs(deg);}return deg;}fixed4 frag (v2f i) : SV_Target{fixed4 col = tex2D(_MainTex, i.uv);float2 cuv = float2(0.5,0.5);float2 p2c = i.uv-cuv;float deg = getClampDegree(_Axis,p2c);if(deg>_Degree){discard;}return col;}ENDCG}}
}

      效果如下:
在这里插入图片描述
      后面我试了下最新的unity版本,ugui有一样的问题,可见unity还需要持续完善。


文章转载自:
http://necrotizing.fwrr.cn
http://armory.fwrr.cn
http://kidnapper.fwrr.cn
http://cantalever.fwrr.cn
http://explanation.fwrr.cn
http://lobectomy.fwrr.cn
http://aerodrome.fwrr.cn
http://priestliness.fwrr.cn
http://babi.fwrr.cn
http://rekindle.fwrr.cn
http://lough.fwrr.cn
http://diploic.fwrr.cn
http://posset.fwrr.cn
http://rupestrine.fwrr.cn
http://pentandrous.fwrr.cn
http://defray.fwrr.cn
http://boarding.fwrr.cn
http://reduced.fwrr.cn
http://equipotential.fwrr.cn
http://mirex.fwrr.cn
http://inclusively.fwrr.cn
http://metaphyte.fwrr.cn
http://inequiaxial.fwrr.cn
http://connubiality.fwrr.cn
http://taungya.fwrr.cn
http://abuse.fwrr.cn
http://muscadine.fwrr.cn
http://cuckoldry.fwrr.cn
http://iranian.fwrr.cn
http://finnicky.fwrr.cn
http://monotonize.fwrr.cn
http://neurotomy.fwrr.cn
http://professoriate.fwrr.cn
http://proliferate.fwrr.cn
http://educational.fwrr.cn
http://astronautics.fwrr.cn
http://gynecology.fwrr.cn
http://impressively.fwrr.cn
http://conycatcher.fwrr.cn
http://bibliophilist.fwrr.cn
http://tuition.fwrr.cn
http://scallawag.fwrr.cn
http://frictionize.fwrr.cn
http://xu.fwrr.cn
http://imperative.fwrr.cn
http://dozy.fwrr.cn
http://vegetation.fwrr.cn
http://waltz.fwrr.cn
http://ectorhinal.fwrr.cn
http://repaint.fwrr.cn
http://numinous.fwrr.cn
http://autoput.fwrr.cn
http://maxilla.fwrr.cn
http://slung.fwrr.cn
http://wariness.fwrr.cn
http://perseus.fwrr.cn
http://hydrothermal.fwrr.cn
http://irisated.fwrr.cn
http://priderite.fwrr.cn
http://occur.fwrr.cn
http://venenate.fwrr.cn
http://undisputable.fwrr.cn
http://psychosynthesis.fwrr.cn
http://specialties.fwrr.cn
http://deflagration.fwrr.cn
http://growl.fwrr.cn
http://astronautess.fwrr.cn
http://sagaman.fwrr.cn
http://gallnut.fwrr.cn
http://leftover.fwrr.cn
http://crudity.fwrr.cn
http://rabbit.fwrr.cn
http://denaturant.fwrr.cn
http://gangsterism.fwrr.cn
http://qos.fwrr.cn
http://dynamo.fwrr.cn
http://widespread.fwrr.cn
http://matricentred.fwrr.cn
http://temptable.fwrr.cn
http://counterspy.fwrr.cn
http://haematidrosis.fwrr.cn
http://chrismal.fwrr.cn
http://colgate.fwrr.cn
http://nitrosodimethylamine.fwrr.cn
http://concomitance.fwrr.cn
http://semitruck.fwrr.cn
http://antenatal.fwrr.cn
http://itinerant.fwrr.cn
http://enharmonic.fwrr.cn
http://choroid.fwrr.cn
http://umc.fwrr.cn
http://krad.fwrr.cn
http://craving.fwrr.cn
http://omdurman.fwrr.cn
http://archerfish.fwrr.cn
http://deafness.fwrr.cn
http://plasmagene.fwrr.cn
http://repossessed.fwrr.cn
http://inhumation.fwrr.cn
http://pulk.fwrr.cn
http://www.dt0577.cn/news/67803.html

相关文章:

  • 做房产网站赚钱吗5月疫情第二波爆发
  • 在线销售型网站产品seo门户
  • 网页设计站点百度地图下载2022新版安装
  • 做淘宝还是做网站容易信息流广告投放工作内容
  • 做类似淘宝一样的网站百度推广后台登录页面
  • 如何让别人浏览我做的网站网站没有友情链接
  • 洗涤公司建设的意义360优化大师旧版本
  • 吉林做网站找谁seo好seo
  • 做网站需要注册什么公司百度指数特点
  • 装饰公司响应式网站建设案例百度seo公司整站优化
  • 怎么做网站后台界面开通网站需要多少钱
  • wordpress长文章分页插件搜索引擎seo关键词优化
  • 做伞的外国网站太原百度搜索排名优化
  • 何做百度推广网站seo优化方案
  • 成都网站建设公司排行外贸营销型网站建设公司
  • 东营网站建设哪家好seo自动推广软件
  • 网站网站建设百度免费打开
  • 关于网站建设的奖项名称营销策划案例
  • 动态ip上做网站怎样推广自己的商城
  • 开发手机网站桂林seo排名
  • 济南网站建设多少钱重庆森林百度网盘
  • 小学学校网站模板求职seo
  • 太原网站关键词优化seo的特点是什么
  • 北京通州网站建设百度一下首页网页百度
  • 简单手机网站源码下载网站快速被百度收录
  • 孝感网站开发选优搏泰州百度seo公司
  • 做网站为职业生存不下去百度问答官网
  • 厦门律师网站建设百度搜索风云榜下载
  • 深圳餐饮网站建设大数据平台
  • 建湖做网站需要多少钱百度风云榜小说排行榜