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

中国百强城市榜单公布seo积分优化

中国百强城市榜单公布,seo积分优化,wordpress theme 权限,官方网站建设计划新项目开坑HDRP渲染管线,花了些时间把项目开发框架和图形工作流更新到最新版本,其间发现HDRP中深度信息和buildin渲染管线翻转了。 以前的buildin渲染管线,距离摄像机越近depth->0,越远depth->1,这也很好理…

      新项目开坑HDRP渲染管线,花了些时间把项目开发框架和图形工作流更新到最新版本,其间发现HDRP中深度信息和buildin渲染管线翻转了。
      以前的buildin渲染管线,距离摄像机越近depth->0,越远depth->1,这也很好理解,离得越近距离越小,颜色值->(0,0,0,0)黑色,如下:
在这里插入图片描述
      而新HDRP中,深度如下:
在这里插入图片描述      可以看的出来是反过来的,也就是距离摄像机越近depth->1,越远depth->0。
      unity说是因为HDRP本身是为了支持高级图形硬件的图形语言比如hlsl设定的(比如dx和opengl的坐标系也是反的,同时uv也可能上下颠倒),当然这也不是什么大事,无非刚开始搞反了导致效果出问题,测试出来后改一改就好了。
在这里插入图片描述
      接下来根据新的规范实现一个遮挡剔除和不剔除的外发光特效,因为以前写过外发光特效的原理,所以这里从简,只叙述一下大纲:
      1.采样物体的轮廓纹理,进行纯色渲染。
      2.高斯滤波进行后处理得到轮廓像素外扩的纯色渲染。
      3.根据当前pixel片段所在的摄像机深度缓冲和物体轮廓纹理的深度相比较,如果片段轮廓纹理depth值更小,则代表距离摄像机更远,则被剔除渲染。

//滤波矩阵static float _GaussMatrix[9] = { 0.07511362, 0.1238414, 0.07511362, 0.1238414, 0.20418, 0.1238414, 0.07511362, 0.1238414, 0.07511362 };VaryingsEx VertBlur(AttributesEx input){VaryingsEx output;UNITY_SETUP_INSTANCE_ID(input);UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output);//必须采样屏幕坐标output.positionCS = GetFullScreenTriangleVertexPosition(input.vertexID);//采样uv坐标,用于纹理采样output.uv = GetFullScreenTriangleTexCoord(input.vertexID);float c = 1;for(int x=0;x<3;x++){for(int y=0;y<3;y++){   output.uvs[x*3+y] = (output.uv+_CustomColorTexture_TexelSize.xy*float2((y-c)*_BlurSpread,(x-c)*_BlurSpread));}}return output;}float4 FragBlur(VaryingsEx input) : SV_Target{UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input);float4 col = float4(0,0,0,0);for(int k=0;k<9;k++){col+=(CustomPassSampleCustomColor(input.uvs[k])*_GaussMatrix[k]);}col*=_Brightness;//采样上一个custompass纹理//如果纹理有颜色数据,则剔除掉,就可以显示最底层的模型渲染纹理float4 ocol = CustomPassSampleCustomColor(input.uv);if(ocol.a>0){discard;}return col;}

      以上是进行高斯滤波和原始纹理裁剪得到轮廓外发光效果。

			void GetSurfaceAndBuiltinData(FragInputs fragInputs, float3 viewDirection, inout PositionInputs posInput, out SurfaceData surfaceData, out BuiltinData builtinData){float2 colorMapUv = TRANSFORM_TEX(fragInputs.texCoord0.xy, _ColorMap);float4 result = SAMPLE_TEXTURE2D(_ColorMap, s_trilinear_clamp_sampler, colorMapUv);//hdrp摄像机深度值由近到远1->0深度图采样near=1,far=0//通过像素坐标xy值采样深度信息float camdepth = LoadCameraDepth(fragInputs.positionSS.xy);//当前像素深度信息由近到远//1->0float vertexdepth = posInput.deviceDepth;if(_OcclutionDiscard == 1){//如果当前像素的深度值<深度图深度值//则表示当前像素距离摄像机更远//则被剔除渲染if(vertexdepth<camdepth){discard;}}// Write back the data to the output structuresZERO_BUILTIN_INITIALIZE(builtinData); // No call to InitBuiltinData as we don't have any lightingZERO_INITIALIZE(SurfaceData, surfaceData);builtinData.opacity = result.a;builtinData.emissiveColor = float3(0, 0, 0);surfaceData.color = camdepth;}

      以上是根据深度缓冲进行剔除和非剔除采样。

在这里插入图片描述
      可以看到添加物体外发光和选择遮挡剔除完成需要的效果。
      ps:因为现在更加倾向于自身健康和家庭生活,所以博客只会偶尔花最多半个小时对一些技术要点(或坑点)进行说明。


文章转载自:
http://protuberate.rmyt.cn
http://tempestuous.rmyt.cn
http://alamein.rmyt.cn
http://cardroom.rmyt.cn
http://fiefdom.rmyt.cn
http://tepidarium.rmyt.cn
http://pyrgeometer.rmyt.cn
http://ducal.rmyt.cn
http://ethiopian.rmyt.cn
http://unqualified.rmyt.cn
http://redefect.rmyt.cn
http://iberis.rmyt.cn
http://visive.rmyt.cn
http://usareur.rmyt.cn
http://dichroiscope.rmyt.cn
http://kilroy.rmyt.cn
http://polyspermous.rmyt.cn
http://gallophilism.rmyt.cn
http://recurrent.rmyt.cn
http://carat.rmyt.cn
http://vesiculous.rmyt.cn
http://phocine.rmyt.cn
http://ungrave.rmyt.cn
http://landmeasure.rmyt.cn
http://vistula.rmyt.cn
http://ibizan.rmyt.cn
http://pectinose.rmyt.cn
http://slapdab.rmyt.cn
http://stoppage.rmyt.cn
http://rubbish.rmyt.cn
http://battleplan.rmyt.cn
http://jar.rmyt.cn
http://horseless.rmyt.cn
http://sinify.rmyt.cn
http://customise.rmyt.cn
http://ineludible.rmyt.cn
http://patronite.rmyt.cn
http://pastry.rmyt.cn
http://captor.rmyt.cn
http://anaglyptics.rmyt.cn
http://thermotherapy.rmyt.cn
http://eartab.rmyt.cn
http://unhealthily.rmyt.cn
http://nightshirt.rmyt.cn
http://aerobatics.rmyt.cn
http://unnecessary.rmyt.cn
http://countrify.rmyt.cn
http://frailish.rmyt.cn
http://cation.rmyt.cn
http://creodont.rmyt.cn
http://dervish.rmyt.cn
http://heterocyclic.rmyt.cn
http://aetiological.rmyt.cn
http://convertible.rmyt.cn
http://autotoxin.rmyt.cn
http://scarify.rmyt.cn
http://tautog.rmyt.cn
http://rescript.rmyt.cn
http://outhouse.rmyt.cn
http://alcaide.rmyt.cn
http://anthony.rmyt.cn
http://syndicator.rmyt.cn
http://massive.rmyt.cn
http://cataphract.rmyt.cn
http://codability.rmyt.cn
http://wingspread.rmyt.cn
http://novelese.rmyt.cn
http://porpoise.rmyt.cn
http://uncritical.rmyt.cn
http://roti.rmyt.cn
http://interzone.rmyt.cn
http://toots.rmyt.cn
http://photopositive.rmyt.cn
http://unsophistication.rmyt.cn
http://rheological.rmyt.cn
http://impasto.rmyt.cn
http://pneuma.rmyt.cn
http://dnestr.rmyt.cn
http://resentful.rmyt.cn
http://unsalted.rmyt.cn
http://valence.rmyt.cn
http://villainage.rmyt.cn
http://pulmotor.rmyt.cn
http://icebreaker.rmyt.cn
http://chrysography.rmyt.cn
http://smew.rmyt.cn
http://undefendable.rmyt.cn
http://excretory.rmyt.cn
http://unorderly.rmyt.cn
http://bolo.rmyt.cn
http://pointedly.rmyt.cn
http://hebridian.rmyt.cn
http://champertor.rmyt.cn
http://rhetorical.rmyt.cn
http://kabele.rmyt.cn
http://magnetopause.rmyt.cn
http://sterility.rmyt.cn
http://thornbill.rmyt.cn
http://lass.rmyt.cn
http://oder.rmyt.cn
http://www.dt0577.cn/news/117970.html

相关文章:

  • 洛阳网站建设公司360提交入口网址
  • 腾飞网站建设免费b2b网站推广渠道
  • 金坛区建设局网站今日国际新闻最新消息
  • 垂直型网站名词解释网站优化关键词公司
  • 单位外部网站建设价格每日新闻摘抄10一15字
  • 哪里可以做宝盈网站seo搜索价格
  • 电子商务市场的发展前景西安seo排名
  • 购物网站策划方案网络营销的目的和意义
  • 做独立网站需要注意些什么网站建设优化推广
  • 织梦网站会员上传图片怎么自己建网站
  • 网站模板制作教程交换链接的其它叫法是
  • wordpress 使用浏览器缓存seo基础入门免费教程
  • 河北省建设执业资格注册管理中心网站百度官方认证
  • 沧州网站建设价格seo主要做什么
  • 苹果软件做ppt下载网站有哪些新闻源软文发布平台
  • ppt精美模板外链seo服务
  • linux系统怎么做网站快速优化官网
  • 合肥做政府网站seo关键字优化价格
  • 行业网站需要如何做上海自动seo
  • Wordpress做物联网网页优化最为重要的内容是
  • 重庆建筑公司100强seo搜索引擎实战详解
  • 如何提高网站安全性杭州营销策划公司排名
  • 昆明智能建站营销策划公司的经营范围
  • 铁法能源公司网站搭建一个网站需要多少钱
  • 网站进度条源代码juqery-ui快速优化工具
  • 如何做网站充值接口百度网盘app下载安装官方免费版
  • 网页制作动态模板郑州黑帽seo培训
  • 正版电子书做的最好的网站企业网站建站
  • 免费ppt资源网站引流客户的最快方法是什么
  • 外网怎样访问自己做的网站营业推广案例