Skip to content

Commit 03beddf

Browse files
committed
improve naming and add description for dither
1 parent 3c89cec commit 03beddf

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

fast64_internal/f3d/f3d_material.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2852,13 +2852,14 @@ class TextureProperty(PropertyGroup):
28522852
update=update_tex_values,
28532853
)
28542854
dithering_method: bpy.props.EnumProperty(
2855-
name="Dithering Method",
2855+
name="Dithering (Conversion)",
28562856
items=[
28572857
("NONE", "None", ""),
28582858
("RANDOM", "Random", ""),
28592859
("DITHERED", "Dithered", ""),
2860-
("Floyd-Steinberg", "Floyd-Steinberg", ""),
2860+
("FLOYD", "Floyd-Steinberg", "TODO in mksprite, but by far the best dithering method on n64"),
28612861
],
2862+
description="How the texture will be dithered when quantizing (reducing colors), this helps with color banding",
28622863
)
28632864
tex_index: bpy.props.IntProperty(
28642865
name="Texture Index",
@@ -3074,7 +3075,7 @@ def ui_image(
30743075
size = tex_prop.size
30753076
prop_input.label(text=f"Size: {size[0]}x{size[1]}")
30763077
if has_texture:
3077-
prop_split(prop_input, tex_prop, "dithering_method", "Dithering Method")
3078+
prop_split(prop_input, tex_prop, "dithering_method", "Dithering (Conversion)")
30783079
else:
30793080
prop_split(prop_input, tex_prop, "tex_reference_size", "Texture Size")
30803081

@@ -3172,8 +3173,12 @@ def draw_s_t_field(layout: UILayout, text: str, prop: str, field_text=False):
31723173
repeat_split = prop_input.split(factor=0.2)
31733174
repeat_split.label(text="Repeats")
31743175
repeat_split_right = repeat_split.split(factor=0.5, align=True)
3175-
draw_forced(repeat_split_right, tex_prop.S, "repeats", not autoprop or tex_prop.S.clamp, "", "Infinite", False)
3176-
draw_forced(repeat_split_right, tex_prop.T, "repeats", not autoprop or tex_prop.T.clamp, "", "Infinite", False)
3176+
draw_forced(
3177+
repeat_split_right, tex_prop.S, "repeats", not autoprop or tex_prop.S.clamp, "", "Infinite", False
3178+
)
3179+
draw_forced(
3180+
repeat_split_right, tex_prop.T, "repeats", not autoprop or tex_prop.T.clamp, "", "Infinite", False
3181+
)
31773182

31783183
if not hide_lowhigh:
31793184
draw_s_t_field(prop_input, "Translate", "low")

0 commit comments

Comments
 (0)