Bonjour, pour mon premier sujet sur ce forum je souhaite vous parler du traitement HLSL pour un rendu s'approchant du CRT.
J'ai trouvé des configurations que je trouve plutôt bien, voyez plutôt (les screenshots ne sont pas très représentatifs, les scanlines ne sont pas tout à fait comme cela en plein écran donc à vous de tester) :
Version 1 :
hlsl_enable 1
hlslpath hlsl
hlsl_ini_read 0
hlsl_ini_write 0
hlslini %g
hlsl_prescale_x 2
hlsl_prescale_y 2
hlsl_preset -1
hlsl_write 0
hlsl_snap_width 1920
hlsl_snap_height 1080
shadow_mask_alpha 0.090000
shadow_mask_texture aperture.png
shadow_mask_x_count 320
shadow_mask_y_count 224
shadow_mask_usize 0.187500
shadow_mask_vsize 0.093750
curvature 0.040000
pincushion 0.040000
scanline_alpha 0.450000
scanline_size 1.000000
scanline_height 0.750000
scanline_bright_scale 1.000000
scanline_bright_offset 0.500000
scanline_jitter 0.000000
defocus 0.000000,0.000000
converge_x 0.000000,0.000000,0.000000
converge_y 0.000000,0.000000,0.000000
radial_converge_x 0.000000,0.000000,0.000000
radial_converge_y 0.000000,0.000000,0.000000
red_ratio 1.000000,0.000000,0.000000
grn_ratio 0.000000,1.000000,0.000000
blu_ratio 0.000000,0.000000,1.000000
saturation 1.150000
offset 0.000000,0.000000,0.000000
scale 0.950000,0.950000,0.950000
power 1.100000,1.100000,1.100000
floor 0.000000,0.000000,0.000000
phosphor_life 0.200000,0.200000,0.200000
yiq_enable 0
yiq_cc 3.041830
yiq_a 0.000000
yiq_b 0.000000
yiq_o 3.600000
yiq_p 1.000000
yiq_n 1.000000
yiq_y 2.200000
yiq_i 0.800000
yiq_q 0.200000
yiq_scan_time 52.599998
yiq_phase_count 1
![](http://gamoovernet.pixhotel.fr/pics_gamoovernet690px/20120825154423-Arioch-wboy-hlsl.png)
Version 2 :
hlsl_enable 1
hlslpath hlsl
shadow_mask_alpha 0.1
shadow_mask_texture aperture.png
shadow_mask_x_count 512
shadow_mask_y_count 384
shadow_mask_usize 0.125
shadow_mask_vsize 0.125
oversample_x 1.0
oversample_y 1.0
curvature 0.05
screen_scale_top 1.0
screen_scale_bottom 1.0
pincushion 0.05
scanline_alpha 0.5
scanline_size 1.0
scanline_bright_scale 1.0
scanline_bright_offset 0.7
scanline_jitter 0.0
defocus_x 0.0
defocus_y 0.0
red_converge_x 0.0
red_converge_y 0.0
green_converge_x 0.0
green_converge_y 0.0
blue_converge_x 0.0
blue_converge_y 0.0
red_radial_converge_x 0.0
red_radial_converge_y 0.0
green_radial_converge_x 0.0
green_radial_converge_y 0.0
blue_radial_converge_x 0.0
blue_radial_converge_y 0.0
red_from_r 1.0
red_from_g 0.0
red_from_b 0.0
green_from_r 0.0
green_from_g 1.0
green_from_b 0.0
blue_from_r 0.0
blue_from_g 0.0
blue_from_b 1.0
saturation 1.5
red_offset 0.0
green_offset 0.0
blue_offset 0.0
red_scale 1.1
green_scale 1.1
blue_scale 1.1
red_power 2.2
green_power 2.2
blue_power 2.2
red_floor 0.05
green_floor 0.05
blue_floor 0.05
red_phosphor_life 0.45
green_phosphor_life 0.45
blue_phosphor_life 0.45
yiq_enable 0
yiq_w 4.1887902047863909846168578443727
yiq_a 0.5
yiq_b 0.5
yiq_fsc 1.5
yiq_fsc_scale 0.5
yiq_phase_count 2
![](http://gamoovernet.pixhotel.fr/pics_gamoovernet690px/20120825154530-Arioch-wboy-hlsl-2.png)
Version 3 :
hlsl_enable 1
hlslpath hlsl
shadow_mask_alpha 0.1
shadow_mask_texture aperture.png
shadow_mask_x_count 512
shadow_mask_y_count 384
shadow_mask_usize 0.1875
shadow_mask_vsize 0.1875
oversample_x 1.0
oversample_y 1.0
curvature 0.05
screen_scale_top 1.0
screen_scale_bottom 1.0
pincushion 0.05
scanline_alpha 0.5
scanline_size 1.0
scanline_bright_scale 1.0
scanline_bright_offset 0.7
scanline_jitter 0.0
defocus_x 1.0
defocus_y 1.0
red_converge_x 0.0
red_converge_y 0.0
green_converge_x 0.0
green_converge_y 0.0
blue_converge_x 0.0
blue_converge_y 0.0
red_radial_converge_x 0.0
red_radial_converge_y 0.0
green_radial_converge_x 0.0
green_radial_converge_y 0.0
blue_radial_converge_x 0.0
blue_radial_converge_y 0.0
red_from_r 1.0
red_from_g 0.0
red_from_b 0.0
green_from_r 0.0
green_from_g 1.0
green_from_b 0.0
blue_from_r 0.0
blue_from_g 0.0
blue_from_b 1.0
saturation 1.0
red_offset 0.0
green_offset 0.0
blue_offset 0.0
red_scale 1.1
green_scale 1.1
blue_scale 1.1
red_power 2.2
green_power 2.2
blue_power 2.2
red_floor 0.05
green_floor 0.05
blue_floor 0.05
red_phosphor_life 0.45
green_phosphor_life 0.45
blue_phosphor_life 0.45
yiq_enable 0
yiq_w 4.1187867
yiq_a 0.5
yiq_b 0.5
yiq_fsc 1.5
yiq_fsc_scale 2.0
yiq_phase_count 2
![](http://gamoovernet.pixhotel.fr/pics_gamoovernet690px/20120825154844-Arioch-wboy-hlsl-3.png)
D'après vous lequel est le meilleur ? En avez-vous d'autres ? L'effet bombé est-il indispensable ? À vous de juger !