Skip to content

Instantly share code, notes, and snippets.

@realmonster
realmonster / joypads.s
Last active June 13, 2021 08:50
Sega Genesis Test ROM with reading of Team Player and 4Way on the fly.
/*
Disclaimer:
Any and all content presented in this sourcecode is
for informational and educational purposes.
You assume any and all responsibility for using this content responsibly.
It's extracted from game Street Racer, formatted, modified and commented by r57shell.
At the request of the original license holders
and developers this sourcecode will be removed.
Keywords for searching changes: was, modified, added.
# IMPORTANT:
# Shader passes need to know details about the image in the mask_texture LUT
# files, so set the following constants in user-cgp-constants.h accordingly:
# 1.) mask_triads_per_tile = (number of horizontal triads in mask texture LUT's)
# 2.) mask_texture_small_size = (texture size of mask*texture_small LUT's)
# 3.) mask_texture_large_size = (texture size of mask*texture_large LUT's)
# 4.) mask_grille_avg_color = (avg. brightness of mask_grille_texture* LUT's, in [0, 1])
# 5.) mask_slot_avg_color = (avg. brightness of mask_slot_texture* LUT's, in [0, 1])
# 6.) mask_shadow_avg_color = (avg. brightness of mask_shadow_texture* LUT's, in [0, 1])
# Shader passes also need to know certain scales set in this .cgp, but their