SMAABlendingWeightCalculationVS


/*** Blend Weight Calculation Vertex Shader*/
void SMAABlendingWeightCalculationVS(float2 texcoord,out float2 pixcoord,out float4 offset[3]) {

  1. 计算当前纹理左边对应的纹理像素值位置。
pixcoord = texcoord * SMAA_RT_METRICS.zw;

  1. 计算偏移值其中的 0.125, 0.25, 1.25 等偏移值用于双线性采样。
// We will use these offsets for the searches later on (see @PSEUDO_GATHER4):
offset[0] = mad(SMAA_RT_METRICS.xyxy, float4(-0.25, -0.125,  1.25, -0.125), texcoord.xyxy);
offset[1] = mad(SMAA_RT_METRICS.xyxy, float4(-0.125, -0.25, -0.125,  1.25), texcoord.xyxy);

偏移值图示
-


  1. 计算搜索终点由于使用了纹理双线性采样,所以搜索长度 = 搜索步数 * 2
// And these for the searches, they indicate the ends of the loops:
offset[2] = mad(SMAA_RT_METRICS.xxyy,float4(-2.0, 2.0, -2.0, 2.0) * float(SMAA_MAX_SEARCH_STEPS),float4(offset[0].xz, offset[1].yw));

SMAA算法详解 - SMAABlendingWeightCalculationVS相关推荐

  1. SMAA算法详解 - SearchTex

    SearchTex SearchTex.png (x10) 边界样式 # This dict returns which edges are active for a certain bilinear ...

  2. SMAA算法详解 - SMAANeighborhoodBlendingPS

    目录 - SMAA代码详解 SMAANeighborhoodBlendingPS //--------------------------------------------------------- ...

  3. SMAA算法详解 - SMAALumaEdgeDetectionPS

    目录 - SMAA代码详解 SMAALumaEdgeDetectionPS /*** Luma Edge Detection** IMPORTANT NOTICE: luma edge detecti ...

  4. SMAA算法详解 - SMAANeighborhoodBlendingVS

    目录 - SMAA代码详解 SMAANeighborhoodBlendingVS /*** Neighborhood Blending Vertex Shader*/ void SMAANeighbo ...

  5. SMAA算法详解 - AreaTex

    AreaTex 以下均在无SubPixel的情况下,即offset = (0,0).subpixel将单独讲解. areaortho.area # Calculates the area under ...

  6. SMAA算法详解 - SMAADetectHorizontalCornerPattern

    SMAADetectHorizontalCornerPattern 修正水平转角 //--------------------------------------------------------- ...

  7. SMAA算法详解 - SMAAEdgeDetectionVS

    SMAAEdgeDetectionVS ​计算从当前像素点到目标像素点的偏移值. /*** Edge Detection Vertex Shader*/ void SMAAEdgeDetectionV ...

  8. SMAA算法详解 - SMAADetectVerticalCornerPattern

    SMAADetectVerticalCornerPattern void SMAADetectVerticalCornerPattern(SMAATexture2D(edgesTex), inout ...

  9. SMAA算法详解 - SMAADepthEdgeDetectionPS

    SMAADepthEdgeDetectionPS /*** Depth Edge Detection*/ float2 SMAADepthEdgeDetectionPS(float2 texcoord ...

最新文章

  1. python可以自学吗-python可以自学吗
  2. 获取自定义组件的宽度和高度
  3. Pathlib获取当前文件绝对路径
  4. 淘宝弹性布局方案lib-flexible研究
  5. AlphaFold 和 AI 蛋白质折叠革命的下一步是什么
  6. 网络监控工具 开源_在不到一个月的时间内,我如何使用开源工具成为网络漫画家
  7. fpga arm 通讯_科学网-[转载]【电子技术】【2014】FPGA增强的数据处理系统
  8. Popclip的JSON格式化扩展
  9. 创建销售订单的BAPI
  10. 2019天梯赛+第一次面试总结
  11. 暑期JAVA学习(14.1)Map集合案例-统计投票人数
  12. 官网USB读卡器移植(TF卡SDIO模式 + SPI-flash)
  13. 美食探店的文章怎么写?有什么技巧
  14. 网络信息安全模型概述
  15. 【愚公系列】2023年02月 .NET CORE工具案例-Caliburn.Micro的使用基于WPF的改造的MVVM案例
  16. 【java并发编程实践】源码
  17. 知数堂郑松华:MySQL 8.0 SQL优化之CTE 、窗口函数的应用
  18. 钟汉良日记:网络也是江湖,有恩怨情仇有利益纠葛
  19. Baxter官网资料(查)
  20. BLUEMOON记录

热门文章

  1. 信息技术基础2(课程笔记)
  2. 前端JavaScript-面向对象
  3. lol英雄联盟符文助手/一键应用符文易语言源码
  4. Framework 修改默认输入法
  5. 2017车载后市场年终回顾:天下武功,唯快不破
  6. ChunJunOceanBase联合方案首次发布:构建一体化数据集成方案
  7. 常见端口对应服务及入侵方式
  8. Python智能机械助理
  9. 入坑MATLAB必会的吐血总结
  10. 深入剖析Spring架构与设计原理(一)