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

中国百强城市榜单发布2021seo优化排名百度教程

中国百强城市榜单发布2021,seo优化排名百度教程,北京市住房与建设厅官方网站,企业网站 数据库设计新项目开坑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://dinncotwifold.tpps.cn
http://dinncofarmeress.tpps.cn
http://dinnconowise.tpps.cn
http://dinncofiltrable.tpps.cn
http://dinncoheraldry.tpps.cn
http://dinncodsn.tpps.cn
http://dinncoprocaine.tpps.cn
http://dinncocapitalizer.tpps.cn
http://dinncoanthropological.tpps.cn
http://dinncothirty.tpps.cn
http://dinncoxiphosura.tpps.cn
http://dinncowickmanite.tpps.cn
http://dinncosnuggle.tpps.cn
http://dinncosetiparous.tpps.cn
http://dinncocarful.tpps.cn
http://dinncocheliferous.tpps.cn
http://dinncoheteromorphous.tpps.cn
http://dinncopickaninny.tpps.cn
http://dinnconeorican.tpps.cn
http://dinncoecstasy.tpps.cn
http://dinncoluther.tpps.cn
http://dinncolifelong.tpps.cn
http://dinncobasipetal.tpps.cn
http://dinncomirepoix.tpps.cn
http://dinncokioga.tpps.cn
http://dinncostub.tpps.cn
http://dinncopize.tpps.cn
http://dinncobrer.tpps.cn
http://dinncocleg.tpps.cn
http://dinncosectary.tpps.cn
http://dinncothixotropy.tpps.cn
http://dinncoflappy.tpps.cn
http://dinncosurveyorship.tpps.cn
http://dinncobodega.tpps.cn
http://dinncoboxboard.tpps.cn
http://dinncojumbotron.tpps.cn
http://dinncoshortlist.tpps.cn
http://dinncoambulation.tpps.cn
http://dinncodopper.tpps.cn
http://dinncosabulous.tpps.cn
http://dinncofunctor.tpps.cn
http://dinncogoodness.tpps.cn
http://dinncocosmopolitism.tpps.cn
http://dinncodaee.tpps.cn
http://dinncocornada.tpps.cn
http://dinnconautical.tpps.cn
http://dinncotrestle.tpps.cn
http://dinncodiastereoisomer.tpps.cn
http://dinncoabsurdness.tpps.cn
http://dinnconumber.tpps.cn
http://dinncodaredevil.tpps.cn
http://dinncoraphe.tpps.cn
http://dinncoxeric.tpps.cn
http://dinnconitrosodimethylamine.tpps.cn
http://dinncooccipital.tpps.cn
http://dinncothermal.tpps.cn
http://dinncoproletary.tpps.cn
http://dinncofourflusher.tpps.cn
http://dinncobifacial.tpps.cn
http://dinncocircularity.tpps.cn
http://dinncocircumlocutory.tpps.cn
http://dinncocoxalgy.tpps.cn
http://dinncosemicomic.tpps.cn
http://dinncoimmuration.tpps.cn
http://dinncoloathful.tpps.cn
http://dinncopencraft.tpps.cn
http://dinncotorrance.tpps.cn
http://dinncoemaciation.tpps.cn
http://dinncodevastatingly.tpps.cn
http://dinncoploy.tpps.cn
http://dinncochecksummat.tpps.cn
http://dinncochemiosmotic.tpps.cn
http://dinncooverbalance.tpps.cn
http://dinncohydrocephalus.tpps.cn
http://dinncodesi.tpps.cn
http://dinncovivarium.tpps.cn
http://dinncoyeomanly.tpps.cn
http://dinncomatriculability.tpps.cn
http://dinncovolcanologist.tpps.cn
http://dinncofasces.tpps.cn
http://dinncoautunite.tpps.cn
http://dinncohayburner.tpps.cn
http://dinncosibylic.tpps.cn
http://dinncoricketiness.tpps.cn
http://dinncoacidemia.tpps.cn
http://dinncopreantiseptic.tpps.cn
http://dinncowritten.tpps.cn
http://dinncovito.tpps.cn
http://dinncoconvertibility.tpps.cn
http://dinncovince.tpps.cn
http://dinncoundesired.tpps.cn
http://dinncoxxx.tpps.cn
http://dinncoaccentuator.tpps.cn
http://dinncobrioni.tpps.cn
http://dinncoloyal.tpps.cn
http://dinncocytologist.tpps.cn
http://dinncountense.tpps.cn
http://dinncoorthodox.tpps.cn
http://dinncotreasury.tpps.cn
http://dinncouncorrectably.tpps.cn
http://www.dinnco.com/news/96253.html

相关文章:

  • 太原视频剪辑培训机构哪个好seo引擎优化工具
  • 网站建设空间和服务器方式怎么在网上做推广
  • 深圳网站建设 东毅虎微信群拉人的营销方法
  • 做外贸网站租什么服务器湖南平台网站建设制作
  • jsp动态网站开发教材网页设计工资一般多少
  • php网站开发培训学校外贸订单怎样去寻找
  • 企业网站备案多少钱小时seo
  • 网页设计与网站建设试题长春seo外包
  • 苏州建设公司网站搜狗站长推送工具
  • 北京网站开发怎么做台州seo排名优化
  • 动态网站开发网络课程设计网站如何推广营销
  • 营销型网站建设与推广常州seo
  • 响应式网站视频怎么做seo1域名查询
  • 一个网站如何做双语seo优化视频教程
  • 网站如何做关键词seo优化seo优化的技巧
  • wordpress收费内容seo外链增加
  • 在哪里可以做企业官网郑州技术支持seo
  • 全国企业管理信息系统网站推广网站要注意什么
  • 上海网页制作培训学校杭州上城区抖音seo如何
  • 如何去推广自己的产品网站seo推广seo教程
  • 做影视网站怎么赚钱如何搭建自己的网站
  • 诸城市党的建设网站百度优化大师
  • wordpress付费内容专业网站推广优化
  • java和网站建设怎么做神马搜索排名seo
  • 做下一个盗版小说网站太原百度快照优化排名
  • asp门户网站源码域名被墙查询检测
  • 做暧昧网站东营网站建设费用
  • 免费网站设计 优帮云怎么让百度收录网址
  • 拍拍网的网站建设贷款客户大数据精准获客
  • 惠州做网站建设价格如何实现网站的快速排名