mirror of
https://github.com/libretro/mame.git
synced 2024-12-11 19:53:49 +00:00
Refactored the hlsl.txt documentation file to match current MAME commands (nw)
This commit is contained in:
parent
a2c8d6832f
commit
19fb15b319
143
docs/hlsl.txt
143
docs/hlsl.txt
@ -7,92 +7,83 @@ yiq_enable 0/1 Enables YIQ-colorspace post-processing.
|
|||||||
performance drop but gives a much more authentic
|
performance drop but gives a much more authentic
|
||||||
NTSC TV appearance on TV-based systems when configured
|
NTSC TV appearance on TV-based systems when configured
|
||||||
properly.
|
properly.
|
||||||
hlslpath [path] Path to the .fx files that are in use.
|
hlslpath [path] Path to the .fx files that are in use. (default: hlsl)
|
||||||
|
hlsl_ini_read 0/1 Enable HLSL INI reading.
|
||||||
|
hlsl_ini_write 0/1 Enable HLSL INI writing.
|
||||||
|
hlslini %g HLSL INI file name for running game. (default: %g)
|
||||||
|
hlsl_prescale_x [horizontal] HLSL pre-scale override factor for X (0 for auto).
|
||||||
|
hlsl_prescale_y [vertical] HLSL pre-scale override factor for Y (0 for auto).
|
||||||
|
hlsl_preset 0-3 HLSL preset to use.
|
||||||
|
hlsl_write 0/1 Enable HLSL AVI writing (huge disk bandwidth suggested).
|
||||||
|
hlsl_snap_width [width] HLSL upscaled-snapshot width. (default: 2048)
|
||||||
|
hlsl_snap_height [height] HLSL upscaled-snapshot height. (default: 1536)
|
||||||
|
|
||||||
|
|
||||||
Color-Processing Parameters
|
Surface/Color Processing Parameters
|
||||||
---------------------------
|
-----------------------------------
|
||||||
|
|
||||||
Name Values Description
|
Name Values Description
|
||||||
red_from_r -2.0 to 2.0 These parameters define a 3x3 matrix which is multiplied
|
shadow_mask_alpha 0.0 to 1.0 The ovearll darkness of each shadow mask pixel.
|
||||||
red_from_g -2.0 to 2.0 by the incoming RGB signal. This can be used for any
|
shadow_mask_texture [filename] A PNG that defines the shadow mask for each pixel.
|
||||||
red_from_b -2.0 to 2.0 standard matrix convolution, including H/S/V or simply
|
shadow_mask_x_count 1+ The count of shadow mask elements, X (usually 640-ish)
|
||||||
green_from_r -2.0 to 2.0 affecting the TV-style tint.
|
shadow_mask_y_count 1+ The count of shadow mask elements, X (usually 480-ish)
|
||||||
green_from_g -2.0 to 2.0
|
shadow_mask_usize 0.0 to 1.0 These parameters define the *in-use* pixel count on the
|
||||||
green_from_b -2.0 to 2.0
|
shadow_mask_vsize 0.0 to 1.0 X and Y axes of the shadow mask texture.
|
||||||
blue_from_r -2.0 to 2.0
|
curvature 0.0 to 1.0 Screen curvature. Affects borders and shadow mask.
|
||||||
blue_from_g -2.0 to 2.0
|
pincushion 0.0 to 1.0 Image curvature. Affects the source image only.
|
||||||
blue_from_b -2.0 to 2.0
|
scanline_alpha 0.0 to 1.0 The overall darkness of each scanline furrow.
|
||||||
red_scale -2.0 to 2.0 These parameters define a value for each color channel
|
scanline_size 0.0 to 4.0 The overall height of each scanline.
|
||||||
green_scale -2.0 to 2.0 that is multiplied with said channel after matrix
|
scanline_height [height] Individual height scaling value for scanlines.
|
||||||
blue_scale -2.0 to 2.0 convolution.
|
scanline_bright_scale 0.0 to 2.0 The overall brightness multiplier for each scanline.
|
||||||
red_offset -1.0 to 1.0 These parameters define a value for each color channel
|
scanline_bright_offset 0.0 to 1.0 The overall brightness additive value for each scanline.
|
||||||
green_offset -1.0 to 1.0 that is added to said channel after scaling and after
|
scanline_jitter 0.0 to 2.0 The relative scanline movement per field.
|
||||||
blue_offset -1.0 to 1.0 matrix convolution.
|
defocus [xval,yval] This defines the overall defocus radius for the three
|
||||||
saturation 0.0 to 4.0 This parameter defines the amount each color channel is
|
post-converged beams. Values allowed range from 0.0 to
|
||||||
|
32.0.
|
||||||
|
converge_x [r,g,b] Convergence in screen-relative X direction.
|
||||||
|
converge_y [r,g,b] Convergence in screen-relative Y direction.
|
||||||
|
radial_converge_x [r,g,b] Radial convergence in screen-relative X direction.
|
||||||
|
radial_converge_y [r,g,b] Radial convergence in screen-relative Y direction.
|
||||||
|
Allowed values for convergence: -150 to 150 for each color.
|
||||||
|
red_ratio [r,g,b] These parameters define a 3x3 matrix which is multiplied
|
||||||
|
grn_ratio [r,g,b] by the incoming RGB signal. This can be used for any
|
||||||
|
blu_ratio [r,g,b] standard matrix convolution, including H/S/V or simply
|
||||||
|
affecting the TV-style tint.
|
||||||
|
saturation 0.0 to 4.0 This parameter defines the amount each color channel is
|
||||||
raised above said channel's baseline grayscale value.
|
raised above said channel's baseline grayscale value.
|
||||||
A value of 0.0 gives a gamma-correct grayscale image,
|
A value of 0.0 gives a gamma-correct grayscale image,
|
||||||
whereas 1.0 is full saturation, with each channel being
|
whereas 1.0 is full saturation, with each channel being
|
||||||
oversaturated equally beyond that.
|
oversaturated equally beyond that.
|
||||||
red_power -4.0 to 4.0 These parameters define the exponent for each color
|
offset [r,g,b] These parameters define a value for each color channel
|
||||||
green_power -4.0 to 4.0 channel that is applied after scaling, offsetting,
|
that is added to said channel after scaling and after
|
||||||
blue_power -4.0 to 4.0 saturation and matrix convolution.
|
matrix convolution. (-2.0 to 2.0)
|
||||||
red_floor 0.0 to 1.0 These parameters define the lower limit of each final
|
scale [r,g,b] These parameters define a value for each color channel
|
||||||
green_floor 0.0 to 1.0 color channel value; 0.05, for example, raises the
|
that is multiplied with said channel after matrix
|
||||||
blue_floor 0.0 to 1.0 minimum to 0.05 but re-scales to leave the max at 1.0.
|
convolution. (-2.0 to 2.0)
|
||||||
|
power [r,g,b] These parameters define the exponent for each color
|
||||||
|
channel that is applied after scaling, offsetting,
|
||||||
Convergence-Processing Parameters
|
saturation and matrix convolution. (-4.0 to 4.0)
|
||||||
---------------------------------
|
floor [r,g,b] These parameters define the lower limit of each final
|
||||||
|
color channel value; 0.05, for example, raises the
|
||||||
Name Values Description
|
minimum to 0.05 but re-scales to leave the max at 1.0.
|
||||||
red_converge_x -150 to 150 These parameters define the overall convergence, in pixel
|
phosphor_life [r,g,b] These parameters define the phosphor lifetime for each
|
||||||
red_converge_y -150 to 150 space, for each channel. Radial convergence occurs
|
channel, with 0.0 representing no phosphorescence and
|
||||||
green_converge_x -150 to 150 relative to the center of the screen, whereas the other
|
1.0 leaving the channel on indefinitely. Values allowed
|
||||||
green_converge_y -150 to 150 six define overall translation values.
|
range from 0.0 to 1.0.
|
||||||
blue_converge_x -150 to 150
|
|
||||||
blue_converge_y -150 to 150
|
|
||||||
red_radial_converge_x -150 to 150
|
|
||||||
red_radial_converge_y -150 to 150
|
|
||||||
green_radial_converge_x -150 to 150
|
|
||||||
green_radial_converge_y -150 to 150
|
|
||||||
blue_radial_converge_x -150 to 150
|
|
||||||
blue_radial_converge_y -150 to 150
|
|
||||||
defocus_x 0.0 to 32.0 These parameters define the overall defocus radius for
|
|
||||||
defocus_y 0.0 to 32.0 the three post-converged beams.
|
|
||||||
|
|
||||||
|
|
||||||
Front-Surface Processing Parameters
|
|
||||||
-----------------------------------
|
|
||||||
|
|
||||||
Name Values Description
|
|
||||||
red_phosphor_life 0.0 to 1.0 These parameters define the phosphor lifetime for each
|
|
||||||
green_phosphor_life 0.0 to 1.0 channel, with 0.0 representing no phosphorescence and
|
|
||||||
blue_phosphor_life 0.0 to 1.0 1.0 leaving the channel on indefinitely.
|
|
||||||
scanline_alpha 0.0 to 1.0 The overall darkness of each scanline furrow.
|
|
||||||
scanline_size 0.0 to 4.0 The overall height of each scanline.
|
|
||||||
scanline_bright_scale 0.0 to 2.0 The overall brightness multiplier for each scanline.
|
|
||||||
scanline_bright_offset 0.0 to 1.0 The overall brightness additive value for each scanline.
|
|
||||||
scanline_jitter 0.0 to 2.0 The relative scanline movement per field.
|
|
||||||
shadow_mask_alpha 0.0 to 1.0 The ovearll darkness of each shadow mask pixel.
|
|
||||||
shadow_mask_texture [filename] A PNG that defines the shadow mask for each pixel.
|
|
||||||
shadow_mask_x_count 1+ The count of shadow mask elements, X (usually 640-ish)
|
|
||||||
shadow_mask_y_count 1+ The count of shadow mask elements, X (usually 480-ish)
|
|
||||||
shadow_mask_usize 0.0 to 1.0 These parameters define the *in-use* pixel count on the
|
|
||||||
shadow_mask_vsize 0.0 to 1.0 X and Y axes of the shadow mask texture.
|
|
||||||
curvature 0.0 to 1.0 Screen curvature. Affects borders and shadow mask.
|
|
||||||
pincushion 0.0 to 1.0 Image curvature. Affects the source image only.
|
|
||||||
oversample_x 1.0 to 4.0 These parameters define a multiplier for each axis of the
|
|
||||||
oversample_y 1.0 to 4.0 internal render target. Powerful GPU necessary.
|
|
||||||
|
|
||||||
|
|
||||||
NTSC Processing Parameters
|
NTSC Processing Parameters
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
Name Values Description
|
Name Default Values Description
|
||||||
yiq_w 4.1187867 W parameter for: C(t) = Y(t) + I(t)sin(Wt) + Q(t)cos(Wt)
|
yiq_cc 3.59754545 Color Carrier frequency for NTSC signal processing
|
||||||
yiq_a 0.0 A parameter for: t = x + ay + b;
|
yiq_a 0.5 A value for NTSC signal processing
|
||||||
yiq_b 0.5 B parameter for: t = x + ay + b;
|
yiq_b 0.5 B value for NTSC signal processing
|
||||||
yiq_fsc 1.5 Relative color subcarrier frequency
|
yiq_o 0.0 Outgoing Color Carrier phase offset for NTSC signal processing
|
||||||
yiq_fsc_scale 1.0 Color subcarrier frequency scale
|
yiq_p 1.0 Incoming Pixel Clock scaling value for NTSC signal processing
|
||||||
yiq_phase_count 2 Number of frames for NTSC processing (3 for NES, else 2)
|
yiq_n 1.0 Y filter notch width for NTSC signal processing
|
||||||
|
yiq_y 6.0 Y filter cutoff frequency for NTSC signal processing
|
||||||
|
yiq_i 1.2 I filter cutoff frequency for NTSC signal processing
|
||||||
|
yiq_q 0.6 Q filter cutoff frequency for NTSC signal processing
|
||||||
|
yiq_scan_time 52.6 Horizontal scanline duration for NTSC signal processing (in usec)
|
||||||
|
yiq_phase_count 2 Phase Count value for NTSC signal processing (3 for NES, else 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user