SMAA算法详解 - SMAABlendingWeightCalculationVS
SMAABlendingWeightCalculationVS
/*** Blend Weight Calculation Vertex Shader*/
void SMAABlendingWeightCalculationVS(float2 texcoord,out float2 pixcoord,out float4 offset[3]) {
- 计算当前纹理左边对应的纹理像素值位置。
pixcoord = texcoord * SMAA_RT_METRICS.zw;
- 计算偏移值其中的 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);
偏移值图示
-
- 计算搜索终点由于使用了纹理双线性采样,所以搜索长度 = 搜索步数 * 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相关推荐
- SMAA算法详解 - SearchTex
SearchTex SearchTex.png (x10) 边界样式 # This dict returns which edges are active for a certain bilinear ...
- SMAA算法详解 - SMAANeighborhoodBlendingPS
目录 - SMAA代码详解 SMAANeighborhoodBlendingPS //--------------------------------------------------------- ...
- SMAA算法详解 - SMAALumaEdgeDetectionPS
目录 - SMAA代码详解 SMAALumaEdgeDetectionPS /*** Luma Edge Detection** IMPORTANT NOTICE: luma edge detecti ...
- SMAA算法详解 - SMAANeighborhoodBlendingVS
目录 - SMAA代码详解 SMAANeighborhoodBlendingVS /*** Neighborhood Blending Vertex Shader*/ void SMAANeighbo ...
- SMAA算法详解 - AreaTex
AreaTex 以下均在无SubPixel的情况下,即offset = (0,0).subpixel将单独讲解. areaortho.area # Calculates the area under ...
- SMAA算法详解 - SMAADetectHorizontalCornerPattern
SMAADetectHorizontalCornerPattern 修正水平转角 //--------------------------------------------------------- ...
- SMAA算法详解 - SMAAEdgeDetectionVS
SMAAEdgeDetectionVS 计算从当前像素点到目标像素点的偏移值. /*** Edge Detection Vertex Shader*/ void SMAAEdgeDetectionV ...
- SMAA算法详解 - SMAADetectVerticalCornerPattern
SMAADetectVerticalCornerPattern void SMAADetectVerticalCornerPattern(SMAATexture2D(edgesTex), inout ...
- SMAA算法详解 - SMAADepthEdgeDetectionPS
SMAADepthEdgeDetectionPS /*** Depth Edge Detection*/ float2 SMAADepthEdgeDetectionPS(float2 texcoord ...
最新文章
- python可以自学吗-python可以自学吗
- 获取自定义组件的宽度和高度
- Pathlib获取当前文件绝对路径
- 淘宝弹性布局方案lib-flexible研究
- AlphaFold 和 AI 蛋白质折叠革命的下一步是什么
- 网络监控工具 开源_在不到一个月的时间内,我如何使用开源工具成为网络漫画家
- fpga arm 通讯_科学网-[转载]【电子技术】【2014】FPGA增强的数据处理系统
- Popclip的JSON格式化扩展
- 创建销售订单的BAPI
- 2019天梯赛+第一次面试总结
- 暑期JAVA学习(14.1)Map集合案例-统计投票人数
- 官网USB读卡器移植(TF卡SDIO模式 + SPI-flash)
- 美食探店的文章怎么写?有什么技巧
- 网络信息安全模型概述
- 【愚公系列】2023年02月 .NET CORE工具案例-Caliburn.Micro的使用基于WPF的改造的MVVM案例
- 【java并发编程实践】源码
- 知数堂郑松华:MySQL 8.0 SQL优化之CTE 、窗口函数的应用
- 钟汉良日记:网络也是江湖,有恩怨情仇有利益纠葛
- Baxter官网资料(查)
- BLUEMOON记录