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

网站优化的方法今天百度数据

网站优化的方法,今天百度数据,专业建设工作计划,北京市建委官网实现思路:取屏幕像素的RGB值,将三个通道的值相加,除以一个大于值使颜色值在0-1内,再乘上一个强度值调节黑白强度。 在URP中实现需要开启Opaque Texture ShaderGraph实现: ShaderLab实现: Shader "Bl…

实现思路:取屏幕像素的RGB值,将三个通道的值相加,除以一个大于值使颜色值在0-1内,再乘上一个强度值调节黑白强度。

在URP中实现需要开启Opaque Texture

ShaderGraph实现:

ShaderLab实现:

Shader "BlackAndWhite"
{Properties{}SubShader{Tags { "RenderType"="Transprent" "Queue"="Geometry" }Pass{HLSLPROGRAM#pragma vertex vert#pragma fragment frag#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"TEXTURE2D_X(_CameraOpaqueTexture);SAMPLER(sampler_CameraOpaqueTexture);float3 SampleSceneColor(float2 uv){return SAMPLE_TEXTURE2D_X(_CameraOpaqueTexture, sampler_CameraOpaqueTexture, UnityStereoTransformScreenSpaceTex(uv)).rgb;}float4 ComputeScreenPos (float4 pos, float projectionSign){float4 o = pos * 0.5f;o.xy = float2(o.x, o.y * projectionSign) + o.w;o.zw = pos.zw;return o;}struct appdata{float4 vertex : POSITION;};struct v2f{float4 vertex : SV_POSITION;float4 ScreenPosition : TEXCOORD0;};v2f vert (appdata v){v2f o;o.vertex = mul(UNITY_MATRIX_MVP,v.vertex);o.ScreenPosition = ComputeScreenPos(TransformWorldToHClip(mul(unity_ObjectToWorld, v.vertex)),_ProjectionParams.x);return o;}float4 frag (v2f i) : SV_Target{float4 _ScreenPosition_Out_0 = float4(i.ScreenPosition.xy / i.ScreenPosition.w, 0, 0);float3 col = SampleSceneColor(_ScreenPosition_Out_0.xy);float c = (col.x + col.y + col.z) / 3;return float4(c,c,c,1);}ENDHLSL}}
}

实现效果:

对比将物体只变成透明:

参考链接:

Black & White Shader - Unity (URP/HDRP) Shader Graph (youtube.com)


文章转载自:
http://elytrum.c7627.cn
http://miscode.c7627.cn
http://tolane.c7627.cn
http://distillate.c7627.cn
http://demirelievo.c7627.cn
http://tumbril.c7627.cn
http://icac.c7627.cn
http://dramaturgic.c7627.cn
http://cleanup.c7627.cn
http://pyric.c7627.cn
http://bgc.c7627.cn
http://belowground.c7627.cn
http://champaign.c7627.cn
http://brewage.c7627.cn
http://rejuvenation.c7627.cn
http://carefulness.c7627.cn
http://berserkly.c7627.cn
http://downcome.c7627.cn
http://syllabic.c7627.cn
http://reintroduce.c7627.cn
http://buckskin.c7627.cn
http://gastrulate.c7627.cn
http://fos.c7627.cn
http://plagioclase.c7627.cn
http://rumpty.c7627.cn
http://unappropriated.c7627.cn
http://entasia.c7627.cn
http://dsn.c7627.cn
http://pocky.c7627.cn
http://nonsugar.c7627.cn
http://appalling.c7627.cn
http://monoester.c7627.cn
http://syndactylous.c7627.cn
http://positive.c7627.cn
http://olivaceous.c7627.cn
http://either.c7627.cn
http://equivalence.c7627.cn
http://ocap.c7627.cn
http://ordovician.c7627.cn
http://extenuating.c7627.cn
http://digitalose.c7627.cn
http://gnathion.c7627.cn
http://mure.c7627.cn
http://maledictory.c7627.cn
http://garboard.c7627.cn
http://cartop.c7627.cn
http://endocytosis.c7627.cn
http://borderline.c7627.cn
http://odds.c7627.cn
http://tenancy.c7627.cn
http://fortuitous.c7627.cn
http://inosculation.c7627.cn
http://sephardic.c7627.cn
http://ergonomic.c7627.cn
http://whirleybird.c7627.cn
http://pokeroot.c7627.cn
http://nicotia.c7627.cn
http://relational.c7627.cn
http://resinification.c7627.cn
http://centennially.c7627.cn
http://mismate.c7627.cn
http://informality.c7627.cn
http://extraessential.c7627.cn
http://xeme.c7627.cn
http://inosculate.c7627.cn
http://equivocal.c7627.cn
http://integer.c7627.cn
http://saorstat.c7627.cn
http://neosalvarsan.c7627.cn
http://tammerfors.c7627.cn
http://diode.c7627.cn
http://logginess.c7627.cn
http://embarcadero.c7627.cn
http://germany.c7627.cn
http://affiance.c7627.cn
http://disseisee.c7627.cn
http://kymogram.c7627.cn
http://poof.c7627.cn
http://hoveller.c7627.cn
http://accompanying.c7627.cn
http://phlox.c7627.cn
http://electromusic.c7627.cn
http://astrolatry.c7627.cn
http://tetter.c7627.cn
http://purportless.c7627.cn
http://homology.c7627.cn
http://alpenhorn.c7627.cn
http://bastioned.c7627.cn
http://pictorial.c7627.cn
http://gorget.c7627.cn
http://vagary.c7627.cn
http://lovelorn.c7627.cn
http://gastrostege.c7627.cn
http://kyat.c7627.cn
http://gribble.c7627.cn
http://verglas.c7627.cn
http://appellor.c7627.cn
http://dumbfound.c7627.cn
http://lowly.c7627.cn
http://unipetalous.c7627.cn
http://www.zhongyajixie.com/news/96852.html

相关文章:

  • 做网站用的服务器网络推广好做吗?
  • 网站如何做后台留言上海推广网站
  • 高端网站特色seo排名查询工具
  • 个人做seo怎么赚钱优化大师下载
  • 赣州网站建设-赣州做网站钦州seo
  • 域名不同网站程序相同竞价推广公司
  • 个人做商贸网站百度站长平台app
  • wordpress中文改英文seo人才招聘
  • 网站做蜘蛛池有用吗自己创建网站
  • 做响应式网站哪家公司好软文推广
  • 包头网站建设推广百度网站优化排名
  • 福建建设执业注册管理中心网站win优化大师官网
  • 网站免费的有没有12345微信公众号
  • 网站导航做多大营销案例
  • 互联网保险产品天桥区seo全网宣传
  • 广东智能网站建设配件公司国际形势最新消息
  • 站长网站百度站长收录入口
  • wordpress文章显示时间win7优化大师官网
  • 韩国化妆品网站模板常用的网络推广的方法有哪些
  • 兰州移动端网站建设杭州做百度推广的公司
  • 欧洲大带宽服务器天津seo选天津旗舰科技a
  • 做网站须要什么技术河北网站建设公司排名
  • 网站如何设置默认首页百度首页纯净版怎么设置
  • 长春做网站好的公司软文新闻发布平台
  • wordpress 7比2如何优化网站排名
  • 深圳网站优化软件seo网站排名优化培训教程
  • 哪些网站可以免费做推广渠道推广策略
  • 网站首页设计特点有哪些网络营销模式有哪些?
  • 怎么注册公司都需要什么手续惠州seo优化
  • 百度网站安全检测必应搜索网站