What does ui_step = 0.01 means :?
- Somitomere
- Topic Author
I'm trying to set up SMAA in Batman: Arkham Knight.
I am interested in this section - Edge Detection Treshold.
uniform float EdgeDetectionThreshold <
ui_type = "drag";
ui_min = 0.05; ui_max = 0.20; ui_step = 0.01;
ui_tooltip = "Edge detection threshold. If SMAA misses some edges try lowering this slightly.";
ui_label = "Edge Detection Threshold";
> = 0.10;
I understand that the lower is better, the 0.05 is the best, 0.20 is the worst. But what does ui_step = 0.01 means? What happens if I set Edge detection Treshold to value lower than 0.05, e.g. 0.01?
On a side note: When installing a new version of Reshade, is it better to delete everything and do a clean install or can I just overwrite existing files, does it matter?
Thank you for your answers.
Please Log in or Create an account to join the conversation.
- Daodan
The shader might not work as intended anymore.Somitomere wrote: What happens if I set Edge detection Treshold to value lower than 0.05, e.g. 0.01?
Overwriting the previous installation (which is just the dll, I guess) is fine.Somitomere wrote: On a side note: When installing a new version of Reshade, is it better to delete everything and do a clean install or can I just overwrite existing files, does it matter?
Please Log in or Create an account to join the conversation.
- Somitomere
- Topic Author
If you don't mind another question, what is the difference between color, luma and depth edge detection and which one should I use?
Please Log in or Create an account to join the conversation.
- Daodan
I think with these different edge detection types you can choose which parts of the image SMAA gets applied to.
Color and luma uses the rgb image or its luminosity to find edges.
With the depth edge detection mostly the outlines of objects are getting anti aliased.
Please Log in or Create an account to join the conversation.
- Martigen
The 'ui_' part should be a clue to that
Please Log in or Create an account to join the conversation.
- luluco250
Somitomere wrote: Thank you very much!
If you don't mind another question, what is the difference between color, luma and depth edge detection and which one should I use?
Color uses all three color channels to detect edges, luma detects them through a "grayscale copy" and depth uses the object distance to do it.
Luma is the fastest, use it as a fallback if you're unsure, color usually works quite well, depth will only work if ReShade is able to detect the depth buffer in the game (aka if shaders like depth of field or SSAO work) and also won't detect edges on textures.
If I recall correctly there used to be a mode where you could use two types, "prediction", so color + depth was usually my choice.
Please Log in or Create an account to join the conversation.