RITEG.V2 projects
Unlike V1's JSON, the new version uses TOML which is tons more user-readable and easier to edit by someone who's not familiar with programming.
Example project
# Specify base project options;
# If a preset parameter is specified, these
# options will be merged with a separate project sub-table
[project.base]
author = "untodesu"
about = "Basic example"
input_mode = "disabled" # do not load images
output_mode = "disabled" # do not save images
output_resolution = [640, 480] # run at 640x480 times a scale
final_pass = "pixelize" # specify the shader pass to use for output
# The "docs" preset
[project.docs]
output_mode = "oneshot" # save a single image
output_path = "cwd:docs/project.example.png"
output_filetype = "guess" # guess the output type by output_path
# First shader pass
[[shader_pass]]
name = "example"
shader = "project:shaders/example.frag"
# Second shader pass
[[shader_pass]]
name = "pixelize"
shader = "project:shaders/pixelize.frag"
parameters = [32.0, 32.0, 0.9, 0.9] # Up to 16 numeric values
channels = ["example"] # Up to 4 shader pass names
Basic project options
author
specifies a project's authorabout
defines a short project descriptionfinal_pass
specifies the shader pass which output is used for saving or displaying in the window area
Input options
input_mode
specifies input mode. Can be:disabled
,oneshot
orsprintf
input_path
specifies image path foroneshot
modeinput_format
specifies image format forsprintf
modeinput_maxframes
specifies maximum amount of frames to load forsprintf
, set toprobe
to load until the first failure in the line
Output options
output_mode
specifies output mode. Can be:disabled
,oneshot
orsprintf
output_path
specifies image path foroneshot
modeoutput_format
specifies image format forsprintf
modeoutput_maxframes
specifies maximum amount of frames to load forsprintf
, set toinput
to save as long as input also saved somethingoutput_filetype
specifies output filetype, available options:png
,jpg
orjpeg
,tga
andguess
to guess the type fromoutput_format
output_jpeg_quality
specifies JPEG quality forjpg
filetype. Integer value ranging from 1 to 100