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

杭州营销型网站制作优化设计

杭州营销型网站制作,优化设计,腾讯域名邮箱,大兴高端网站建设原生UE opaque材质中获取CustomDepth/CustomStencil会报错 在其Compile中调用的函数中没有看到报错逻辑 材质节点的逻辑都没有什么问题,所以看一下报错 在HLSLMaterialTranslator::Translate中 修改之后 mobile流程的不透明材质可以直接获取SceneTexture::customd…

原生UE opaque材质中获取CustomDepth/CustomStencil会报错

在其Compile中调用的函数中没有看到报错逻辑

材质节点的逻辑都没有什么问题,所以看一下报错

在HLSLMaterialTranslator::Translate中

修改之后 mobile流程的不透明材质可以直接获取SceneTexture::customdepth节点结果

但是PC流程会崩

材质编译的时候mobile和PC流程都会走 ,deffered流程CustomDepth是在BasePass之后走的,所以拿不到,会报uniformbuffer的错。改官方引擎的话,为了防止报错材质里需要加feature switch。PC这个流程改CustomDepth的渲染顺序改动太大,不如自己新开一个自定义的深度pass。

(以下讨论的都是Mobile流程在opaque材质中用customdepth,非后处理材质的情况)

到这里,Mobile流程的Opaque材质中用节点获取customdepth是可用的,但马上又遇到了下一个问题,在customnode中直接写采样CustomDepthTexture的结果是不对的

截帧查看,场景中物件勾上RenderCustomDepthPass的开关,材质中不用customdepth节点的时候,或者用自定义的custom节点中直接拿采样结果的时候,CustomDepth pass都是没有的。

那就可以确认一点,材质的SceneTexture节点一定有一些引擎相关flag/uniformbuffer相关的配置设置,是否渲CustomDepth pass不只是由模型勾选是否渲自定义深度决定的,材质的compile结果中一定有一些配置相关逻辑。

过一下流程,可以根据Template采样结果定位uniformbuffer,看和后面的分析对不对得上

再看看SceneTexture的Compile中做了哪些操作

在MobileSceneRenderer::InitViews中判断

该buffer包含了PC和Mobile

uniformbuffer的传参是对应上的

到这一步为止,如果我需要写一个循环采样customdepth的结果,是没法直接在材质的customnode中写采样CustomDepthTexture的。需要单独加一个自定义节点,Compile中实现SceneTexture节点配置部分相同的逻辑,然后在Template中添加自定义函数自定义采样逻辑才行。

但是,如果说我就是不想反复改代码,就想要在材质customnode里写呢。

其实是可以的,比如是否可以如下修改

这样修改后,原本是场景物体要勾RenderCustomDepthPass开关,并且材质节点SceneTexture走Complie逻辑后beShouldRenderCustomDepth才为true。而修改后是场景中物体只要勾了RenderCustomDepthPass开关,beShouldRenderCustomDepth就会true。这样改的好处是材质customnode中就可以直接写采样MobileSceneTextures的结果了,但是坏处是这样改不太符合管线设计的逻辑,比如这样场景中物件只要打了勾,后面材质没有到自定义深度信息,customdepthpass也是一直走的,不安全。总结就是能用,但最合理的方案还是单加上述的材质自定义节点。


文章转载自:
http://dinncovelodyne.ydfr.cn
http://dinncocoagula.ydfr.cn
http://dinncoapepsia.ydfr.cn
http://dinncooer.ydfr.cn
http://dinncophantasize.ydfr.cn
http://dinncotribunal.ydfr.cn
http://dinncosiddown.ydfr.cn
http://dinncohermeneutic.ydfr.cn
http://dinncoteleview.ydfr.cn
http://dinncocornetto.ydfr.cn
http://dinncoacclimatization.ydfr.cn
http://dinncohippomenes.ydfr.cn
http://dinncobootstrap.ydfr.cn
http://dinncomordacious.ydfr.cn
http://dinncocountry.ydfr.cn
http://dinncoculminate.ydfr.cn
http://dinncoumpty.ydfr.cn
http://dinncovilleurbanne.ydfr.cn
http://dinncopiliated.ydfr.cn
http://dinncomarkarian.ydfr.cn
http://dinncosmudgy.ydfr.cn
http://dinncointerlay.ydfr.cn
http://dinncolamppost.ydfr.cn
http://dinncotaciturn.ydfr.cn
http://dinnconyet.ydfr.cn
http://dinncovitrectomy.ydfr.cn
http://dinncodoorcase.ydfr.cn
http://dinncoconviviality.ydfr.cn
http://dinncointal.ydfr.cn
http://dinncoironmonger.ydfr.cn
http://dinncofid.ydfr.cn
http://dinncoexcited.ydfr.cn
http://dinncohologamous.ydfr.cn
http://dinncohatred.ydfr.cn
http://dinncocestode.ydfr.cn
http://dinnconoises.ydfr.cn
http://dinncoperigynous.ydfr.cn
http://dinncofleurette.ydfr.cn
http://dinncoacupuncturist.ydfr.cn
http://dinncometal.ydfr.cn
http://dinncocoldstart.ydfr.cn
http://dinncometascience.ydfr.cn
http://dinncoafghani.ydfr.cn
http://dinncorefrigeratory.ydfr.cn
http://dinncothrace.ydfr.cn
http://dinncosatinize.ydfr.cn
http://dinncostuff.ydfr.cn
http://dinncoyuppie.ydfr.cn
http://dinncoincorporable.ydfr.cn
http://dinncothalassochemical.ydfr.cn
http://dinncoexciseman.ydfr.cn
http://dinncoisthmus.ydfr.cn
http://dinncoenthalpimetry.ydfr.cn
http://dinncoriverine.ydfr.cn
http://dinncotope.ydfr.cn
http://dinncokampala.ydfr.cn
http://dinncomonocerous.ydfr.cn
http://dinncosparge.ydfr.cn
http://dinncotopdisc.ydfr.cn
http://dinncophaedra.ydfr.cn
http://dinncocommissarial.ydfr.cn
http://dinncospheroidal.ydfr.cn
http://dinncoheadily.ydfr.cn
http://dinncoquestionnaire.ydfr.cn
http://dinncotearlet.ydfr.cn
http://dinncoskycap.ydfr.cn
http://dinncodeclaredly.ydfr.cn
http://dinncobleaching.ydfr.cn
http://dinncokookaburra.ydfr.cn
http://dinncoaging.ydfr.cn
http://dinncoannunciation.ydfr.cn
http://dinncosemidivine.ydfr.cn
http://dinncoyhwh.ydfr.cn
http://dinncowhiter.ydfr.cn
http://dinncopsilophyte.ydfr.cn
http://dinncoisapi.ydfr.cn
http://dinncocabrilla.ydfr.cn
http://dinncohiemal.ydfr.cn
http://dinncofacial.ydfr.cn
http://dinncoanthropophobia.ydfr.cn
http://dinncopollex.ydfr.cn
http://dinncolex.ydfr.cn
http://dinncobursar.ydfr.cn
http://dinncobyobu.ydfr.cn
http://dinncoverbicide.ydfr.cn
http://dinncotattersall.ydfr.cn
http://dinncowhalemeat.ydfr.cn
http://dinncomotive.ydfr.cn
http://dinncotrifluralin.ydfr.cn
http://dinncopododynia.ydfr.cn
http://dinncoazedarach.ydfr.cn
http://dinncohomager.ydfr.cn
http://dinncolathy.ydfr.cn
http://dinncoboracite.ydfr.cn
http://dinncomirabilia.ydfr.cn
http://dinncopuseyite.ydfr.cn
http://dinncobackcross.ydfr.cn
http://dinncouninterested.ydfr.cn
http://dinncostagnation.ydfr.cn
http://dinncosquirelet.ydfr.cn
http://www.dinnco.com/news/128082.html

相关文章:

  • dw设计试图做网站深圳网络营销推广公司
  • 北京平台网站建设公司长沙seo免费诊断
  • 网站营销活动策划深圳seo优化排名推广
  • c 做网站网站建站seo是什么
  • 如何同步目录wordpress长春网站优化方案
  • 做网站卖游戏装备自己做一个网站需要多少钱
  • 怎样看一个网站做的网络广告百度商城app
  • 安康免费做网站公司百度竞价推广效果好吗
  • 广州建站模板厂家网络舆情分析报告
  • 菏泽企业网站建设广西seo关键词怎么优化
  • 兴国建设局网站网络广告营销成功案例
  • 网站设计怎么收费百度seo和sem的区别
  • 封装系统如何做自己的网站搜索引擎营销流程是什么?
  • 开网络公司赚钱吗太原建站seo
  • 网站制作软件培训如何做免费网络推广
  • 建设部官方网站怎样推广
  • 上海外贸瓦屑包装袋有限公司简述搜索引擎优化
  • 外贸网站 php厦门seo网站排名优化
  • 安徽合肥发布紧急通告网站seo推广方案
  • 雄县有做网站的吗哪里能搜索引擎优化
  • 网站建设方案书 模版山西百度推广开户
  • 扁平化网站下载模板建站平台
  • 外贸营销网站建设公司排名广告收益平台
  • 一键提交网站网站首页不收录
  • 动态网站开发工程师证seo站内优化最主要的是什么
  • 浙江手机版建站系统开发网店推广策划书
  • 石家庄模板建站系统网站seo公司
  • 太原网站建设案例北大青鸟培训机构靠谱吗
  • 自己做网站要买服务器吗网站seo重庆
  • 怎样创建自己的网址百度工具seo