Posts

ENB 淺談IV effect轉SA


 最近在國外論壇很火熱的ENB文件:effect.txt,原本SA ENB就支援此功能,但發揮並強化的是在IV ENB上,接著就有SA玩家逆向用回SA(本IV代碼為著名玩家DKT70所編寫)。

SA畫面與功能還有許多的進步空間,撇開與新遊戲的比較不談,強化遊戲本身就有許多趣味性存在(算是研究過程或成就感而感到有趣...也許我是M型紳士ww)。

話說自己剛移植成功IV代碼,就看到國外論壇放載,有種做白工的感覺..

以下為自行實測


 在此貼上文件簡單翻譯,部分專有名詞暫時亂翻,待請高手詳解。

// Tone Mapping Test Shader - DKT70
// This effect allows changes to exposure, gamma, vignette, blue shift, and lens filter effects.
/ /色調映射著色測試 - DKT70
/ /此將會改變曝光、GAMMA值、暗角、藍移、鏡頭濾鏡等變化。

// Fog filter adjustments. This is used in conjunction with the colour effect, below.
// The minimum value is 0.000, and turns the feature off.
// The maximum value is 1.000, and applies maximum effect.
// Default value for this setting is 0.100
float Defog = 1.00;
/ /霧過濾器的調整。這是用來與控制下面色彩效果。
/ /最小值為 0.000,關閉此功能。
/ /最大值為 1.000,最大效果。
/ /預設值為 0.100
float Defog = 1.00;

// The color of the filter effect. This is similar to a lens filter effect to change colour effects/temperature.
// Need to experiment with different values to get different colour effects.
// Default value for this setting is 1.0, 1.0, 1.0, 1.0
float4 FogColor = {0.07, 0.0,0.05, 0.0};
/ /過濾器效果的顏色:這是一種類似鏡頭濾鏡效果來改變色彩效果/溫度。
/ /需要用不同的值進行測試,來得到不同的色彩效果。
/ /預設值為 1.0,1.0,1.0,1.0 =>照順序分別是色料4色 青C 洋紅M 黃Y 黑K
float4 FogColor = {0.07, 0.0,0.05, 0.0};

// Exposure adjustment. This controls the amount of light in a given scene or area.
// The minimum value is -1.000, and would result in a loss of shadow detail, making dark areas appear grey.
// The maximum value is 1.00, and would result in clipped whites, and extreme high contrast.
// Default value for this setting is 0.0
float Exposure = -0.23;
/ /曝光調整:此項控制光線在畫面中場景或區域的量。
/ /最小值為 -.1000,會導致陰影部分的細節缺失,使得暗區域出現灰色。
/ /最大值是 1.00,會導致亮面過量和極高的對比度。
/ /預設值為 0.0
float Exposure = -0.23;

// Gamma correction. This is linear gamma correction which controls the overall brightness.
// The minimum value is 0.500 and results in maximum brightness.
// The maximum value is 2.000 and results in maximum darkness.
// Default value for this setting is 0.800
float Gamma = 0.725;
/ /Gamma校正:這是由線性Gamma校正其控制的整體亮度。
/ /最小值為 0.500,效果最亮。
/ /最大值是 2.000,效果最暗。
/ /預設值為 0.800
float Gamma = 0.725;

// X/Y vignetting adjustments. Vignetting is a border effect often used in photography.
// The first value represents X values, 0.000 = max vignetting on right side of screen, 1.000 = left side of screen.
// The second value represents Y values, 0.000 = max vignetting on bottom of screen, 1.000 = Top of screen.
// Default value for this setting is 0.500,0.500
float2 VignetteCenter = (0.500,0.500);
/ / X / Y暗角調整:暗角是一種邊框效果,時常在攝影上使用。EX:LOMO風格
/ /第一個值表示X值,0000 =最大暗角在螢幕的右側,1.000 =螢幕的左側。
/ /第二個值表示Y值,0000 =最大暗角在螢幕下方,1.000 =螢幕的頂部。
/ /預設值為 (0.500,0.500) =>中間值
float2 VignetteCenter =(0.500,0.500);

// Radial vignetting. Similar to X/Y vignetting, but this is symmetrical radial vignetting and works from the centre outwards.
// The minimum value is 0.00, and would result in a black screen. 0.10 would show only a tiny portion of the centre of the screen.
// The maximum value is 1.00, and turns this feature off.
// Default value for this setting is 1.00, or 0.90 for minimal Radial Vignette.
float VignetteRadius = 0.62;
/ /徑向暗角:類似 X / Y暈影,但這是對稱的徑向光暈,從中心向外作用。
/ /最小值為 0.00,可能會導致螢幕全黑。0.10只會在顯示一小部分在螢幕中心位置。
/ /最大值是 1.00,關閉此功能。
/ /預設值為 1.00,或 0.90 最小徑向暈影。
float VignetteRadius = 0.62;

// The amount of vignetting. Used in combination with the 2 vignetting settings above.
// The minimum value is -1,   and would result in a maximum black colour vignetting effect.
// The maximum value is 1.00, and would result in a maximum white colour vignetting effect.
// Default value for this setting is -1
float VignetteAmount = -0.5;
/ /漸暈量:結合上面兩個暗角設定。
/ /最小值為 -1,有最大黑色色漸暈影效果。
/ /最大值是1:00,有最大白色色漸暈影效果。
/ /預設值為 -1
float VignetteAmount = -0.5;

※等待吐槽之解釋※漸暈:光學中,隨著光線入射傾斜度的增加,成像的光線截面積減少。

// Blue shift correction. Allows adjustment of blue in the image. Usefull if you have too much yellow or red.
// The minimum value is 0.00, and turns this feature off.
// The maximum value is 1.00, and maximizes the blue in the image.
// Default value for this setting is 0.25
float BlueShift = 0.75;
/ /藍移校正:允許調整畫面中的藍色。主要用在畫面中有過多的黃色或紅色時。
/ /最小值為 0.00,關閉此功能。
/ /最大值是1:00,並最大限度的提高畫面中的藍色。
/ /預設值為 0.25
float BlueShift = 0.75;

待續..

沒有留言:

張貼留言

歡迎Welcome

Bell .Bear Designed by Templateism | MyBloggerLab Copyright © 2014

主題圖片來源:Sookhee Lee. 技術提供:Blogger.