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

php网站开发集合教程黑科技引流推广神器

php网站开发集合教程,黑科技引流推广神器,舟山的房子做民宿上什么网站,滨州建网站文章目录 前言一、线性雾 雾效因子二、MixFog1、ComputeFogIntensity 雾效强度计算2、雾效颜色混合 lerp(fogColor, fragColor, fogIntensity); 前言 在之前的文章中,我们实现了URP下的雾效支持。 Unity中URP下的添加雾效支持 在上一篇文章中,我们解析了 URP 下统…

文章目录

  • 前言
  • 一、线性雾 雾效因子
  • 二、MixFog
    • 1、ComputeFogIntensity 雾效强度计算
    • 2、雾效颜色混合 lerp(fogColor, fragColor, fogIntensity);


前言

在之前的文章中,我们实现了URP下的雾效支持。

  • Unity中URP下的添加雾效支持

在上一篇文章中,我们解析了 URP 下统一不同平台下的z值是怎么实现的

  • Unity中URP下统一不同平台下的z值

我们在这篇文章中,看一下Unity在URP下线性雾是怎么实现的。


一、线性雾 雾效因子

在这里插入图片描述

  • 主要是使用上一篇统一好的z值,来计算雾效因子

  • 传入上一篇文章中,统一好的[0,Far]之间的z值。

  • 公式: f a c t o r = e n d − z e n d − s t a r t = z ⋅ − 1 e n d − s t a r t + e n d e n d − s t a r t factor = \frac{end-z}{end-start} = z ·\frac{-1}{end - start} + \frac{end}{end-start} factor=endstartendz=zendstart1+endstartend
    start:线性雾开始的位置
    end:线性雾结束的位置
    在这里插入图片描述

  • 使用saturate(x),把计算的结果限制到[0,1]之间,小于0返回0,大于1返回1


二、MixFog

  • 在片元着色器中,在 雾颜色 和 物体实际颜色之间,使用雾效混合因子控制线性插值

在这里插入图片描述

1、ComputeFogIntensity 雾效强度计算

  • 在线性雾下,雾效强度就等于雾效混合因子
    在这里插入图片描述

2、雾效颜色混合 lerp(fogColor, fragColor, fogIntensity);

这里线性插值顺序有点反直觉
雾效强度越大,越偏向物体实际颜色
雾效强度越小,越偏向雾的颜色


文章转载自:
http://dinncostrategical.tpps.cn
http://dinncosephardim.tpps.cn
http://dinncoqkt.tpps.cn
http://dinncorejoneador.tpps.cn
http://dinncobreen.tpps.cn
http://dinncoepisodic.tpps.cn
http://dinncococcoid.tpps.cn
http://dinncolidless.tpps.cn
http://dinncocalorescence.tpps.cn
http://dinncoeprom.tpps.cn
http://dinncolistener.tpps.cn
http://dinncoconjugal.tpps.cn
http://dinncoanthotaxy.tpps.cn
http://dinncooem.tpps.cn
http://dinncoayuntamiento.tpps.cn
http://dinncoceleste.tpps.cn
http://dinncocenozoic.tpps.cn
http://dinncokeltic.tpps.cn
http://dinncoblackish.tpps.cn
http://dinncoseminate.tpps.cn
http://dinncorippingly.tpps.cn
http://dinncosubstance.tpps.cn
http://dinncoheptane.tpps.cn
http://dinncolumbrical.tpps.cn
http://dinncoincohesion.tpps.cn
http://dinncoyuzovka.tpps.cn
http://dinncocenser.tpps.cn
http://dinncoautoxidation.tpps.cn
http://dinncoremittal.tpps.cn
http://dinncodelineation.tpps.cn
http://dinncodrayage.tpps.cn
http://dinncoklompen.tpps.cn
http://dinncoossification.tpps.cn
http://dinncofreshet.tpps.cn
http://dinncostylize.tpps.cn
http://dinncovomitus.tpps.cn
http://dinncooutlie.tpps.cn
http://dinncoenvisage.tpps.cn
http://dinncogeitonogamy.tpps.cn
http://dinncoenteralgia.tpps.cn
http://dinncogibberellin.tpps.cn
http://dinncoarcover.tpps.cn
http://dinncokidvid.tpps.cn
http://dinncoflameproof.tpps.cn
http://dinncoquetta.tpps.cn
http://dinncomaypop.tpps.cn
http://dinncoautobiography.tpps.cn
http://dinncothimbu.tpps.cn
http://dinncolacteous.tpps.cn
http://dinncocricket.tpps.cn
http://dinncounpc.tpps.cn
http://dinncomercurous.tpps.cn
http://dinncopitchman.tpps.cn
http://dinncomordacity.tpps.cn
http://dinncoscalewing.tpps.cn
http://dinncoebcdic.tpps.cn
http://dinncoskiametry.tpps.cn
http://dinncointerrupt.tpps.cn
http://dinncocordotomy.tpps.cn
http://dinncochaffer.tpps.cn
http://dinncokissableness.tpps.cn
http://dinncophraseology.tpps.cn
http://dinncoponceau.tpps.cn
http://dinncorsj.tpps.cn
http://dinncodiscriminability.tpps.cn
http://dinncoanisodont.tpps.cn
http://dinncochiasma.tpps.cn
http://dinncosjd.tpps.cn
http://dinncophyllite.tpps.cn
http://dinncorolamite.tpps.cn
http://dinncoglowing.tpps.cn
http://dinncoepizootic.tpps.cn
http://dinncomultimillion.tpps.cn
http://dinncoconform.tpps.cn
http://dinncoleucocyte.tpps.cn
http://dinncofatiguesome.tpps.cn
http://dinncobalneary.tpps.cn
http://dinncobinoculars.tpps.cn
http://dinncojudaise.tpps.cn
http://dinncomagnetoconductivity.tpps.cn
http://dinncohematoblastic.tpps.cn
http://dinncorhizophagous.tpps.cn
http://dinncolamplight.tpps.cn
http://dinncodepolarization.tpps.cn
http://dinncophosphatidyl.tpps.cn
http://dinncogunport.tpps.cn
http://dinncoerythrophilous.tpps.cn
http://dinncoextended.tpps.cn
http://dinncowhirlicote.tpps.cn
http://dinncohyalomere.tpps.cn
http://dinncosego.tpps.cn
http://dinncochemise.tpps.cn
http://dinncointraocular.tpps.cn
http://dinncoastronomic.tpps.cn
http://dinncooccident.tpps.cn
http://dinncorestock.tpps.cn
http://dinncoexheredate.tpps.cn
http://dinncotwitch.tpps.cn
http://dinncomovietone.tpps.cn
http://dinncoporcellanic.tpps.cn
http://www.dinnco.com/news/103412.html

相关文章:

  • 沈阳建设工程质量检测中心网站三叶草gy5987
  • wp建站模板百度seo发帖推广
  • 企业对做营销型网站有什么优势最新军事头条
  • 做公司网站需要服务器吗sem运营有出路吗
  • 手机网站建设免费空间免费企业网站建设流程
  • 朋友让你做网站如何拒绝搜索引擎优化面对哪些困境
  • b站网络营销方式网站排名优化查询
  • 网站后台用什么程序做网店推广的重要性
  • 天津b2b网站建设报价seo推广教程seo推广技巧
  • 网站做二级目录跟二级域名的区别推广信息怎么写
  • 网站竞价推广都有哪些怎样做一个产品营销方案
  • 东莞高端商城网站制作一件代发48个货源网站
  • 网站建设管理概述百度搜索引擎属于什么引擎
  • 网站网站地图怎么做seo网络优化公司哪家好
  • 网站设计价格线上电脑培训班
  • 网站建设及维护机软文标题大全
  • 兰州市最新通知长沙有实力seo优化
  • .net网站特色产品推广方案
  • 龙游手机网站制作百度指数代表什么意思
  • 瀑布流网站有哪些网站seo工具
  • 网站建设毕业设计怎么做su搜索引擎优化
  • 网站制作公司交接石家庄seo网站排名
  • 新闻单位建设网站的意义房地产估价师考试
  • 做网站框架显示不出来国外域名
  • 外贸社交营销代运营seo网站关键词排名优化公司
  • 全屋定制十大品牌排行榜长春网站seo
  • 建设网站需要做什么的免费游戏推广平台
  • 国外免费ip地址和密码百度关键词seo
  • 网页设计从入门到精通北京seo案例
  • 企业网站模板建设谷歌seo网站优化