File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 22
33//!MAGPIE EFFECT
44//!VERSION 2
5+ //!OUTPUT_WIDTH INPUT_WIDTH
6+ //!OUTPUT_HEIGHT INPUT_HEIGHT
57
68
79//!PARAMETER
@@ -95,7 +97,7 @@ float4 Pass1(float2 pos) {
9597
9698 // black level
9799 color -= blackLevel;
98- color = color / (1 - blackLevel);
100+ color = saturate ( color / (1 - blackLevel) );
99101
100102 // gamma correction
101103 color = pow (color, targetGamma / monitorGamma);
Original file line number Diff line number Diff line change @@ -219,6 +219,20 @@ Magpie 内置了大量效果供组合使用,大部分提供了参数选项以
219219 * blackLevel:必须在 -0.3~ 0.3 之间。默认值为 0.07
220220 * contrast:必须在 0~ 2 之间。默认值为 1
221221
222+ * ImageAdjustment:图像参数调整
223+ * 输出尺寸:和输入相同
224+ * 参数
225+ * targetGamma:和 monitorGamma 搭配使用以调节 gamma,此参数指定目标 gamma 值。必须大于 0,默认值为 2.2
226+ * monitorGamma:当前屏幕的 gamma 值。必须大于 0,默认值为 2.2
227+ * saturation:色度。必须大于或等于 0,默认值为 1
228+ * luminance:HSV 空间的明度。必须大于或等于 0,默认值为 1
229+ * contrast:对比度。必须大于或等于 0,默认值为 1
230+ * brightBoost:亮度调整。必须在 -1 到 1 之间,默认值为 0
231+ * blackLevel:暗场强度。必须在 -1 到 1 之间,默认值为 0
232+ * r:红色通道颜色缩放。必须大于或等于 0,默认值为 1
233+ * g:绿色通道颜色缩放。必须大于或等于 0,默认值为 1
234+ * b:蓝色通道颜色缩放。必须大于或等于 0,默认值为 1
235+
222236* Jinc:使用 Jinc 算法缩放输入
223237 * 输出尺寸:取决于 scale 参数
224238 * 参数
You can’t perform that action at this time.
0 commit comments