mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-23 18:17:44 +11:00
(nes-color-decoder) Uniquely name the parameters to avoid conflicts
This commit is contained in:
parent
aa3638d4ec
commit
37d13c8b06
3 changed files with 45 additions and 45 deletions
|
@ -19,24 +19,24 @@ layout(std140, set = 0, binding = 0) uniform UBO
|
|||
|
||||
layout(push_constant) uniform Push
|
||||
{
|
||||
float saturation;
|
||||
float hue_tweak;
|
||||
float contrast;
|
||||
float brightness;
|
||||
float gamma;
|
||||
float nes_saturation;
|
||||
float nes_hue_tweak;
|
||||
float nes_contrast;
|
||||
float nes_brightness;
|
||||
float nes_gamma;
|
||||
} params;
|
||||
|
||||
#pragma parameter saturation "Saturation" 1.0 0.0 5.0 0.05
|
||||
#pragma parameter hue_tweak "Hue" 0.0 -10.0 10.0 0.05
|
||||
#pragma parameter contrast "Contrast" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter brightness "Brightness" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter gamma "Gamma" 1.8 1.0 2.5 0.05
|
||||
#pragma parameter nes_saturation "Saturation" 1.0 0.0 5.0 0.05
|
||||
#pragma parameter nes_hue_tweak "Hue" 0.0 -10.0 10.0 0.05
|
||||
#pragma parameter nes_contrast "Contrast" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter nes_brightness "Brightness" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter nes_gamma "Gamma" 1.8 1.0 2.5 0.05
|
||||
|
||||
#define saturation params.saturation
|
||||
#define hue_tweak params.hue_tweak
|
||||
#define contrast params.contrast
|
||||
#define brightness params.brightness
|
||||
#define gamma params.gamma
|
||||
#define saturation params.nes_saturation
|
||||
#define hue_tweak params.nes_hue_tweak
|
||||
#define contrast params.nes_contrast
|
||||
#define brightness params.nes_brightness
|
||||
#define gamma params.nes_gamma
|
||||
|
||||
bool wave (int p, int color)
|
||||
{
|
||||
|
|
|
@ -19,24 +19,24 @@ layout(std140, set = 0, binding = 0) uniform UBO
|
|||
|
||||
layout(push_constant) uniform Push
|
||||
{
|
||||
float saturation;
|
||||
float hue_tweak;
|
||||
float contrast;
|
||||
float brightness;
|
||||
float gamma;
|
||||
float nes_saturation;
|
||||
float nes_hue_tweak;
|
||||
float nes_contrast;
|
||||
float nes_brightness;
|
||||
float nes_gamma;
|
||||
} params;
|
||||
|
||||
#pragma parameter saturation "Saturation" 1.0 0.0 5.0 0.05
|
||||
#pragma parameter hue_tweak "Hue" 0.0 -10.0 10.0 0.05
|
||||
#pragma parameter contrast "Contrast" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter brightness "Brightness" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter gamma "Gamma" 1.8 1.0 2.5 0.05
|
||||
#pragma parameter nes_saturation "Saturation" 1.0 0.0 5.0 0.05
|
||||
#pragma parameter nes_hue_tweak "Hue" 0.0 -10.0 10.0 0.05
|
||||
#pragma parameter nes_contrast "Contrast" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter nes_brightness "Brightness" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter nes_gamma "Gamma" 1.8 1.0 2.5 0.05
|
||||
|
||||
#define saturation params.saturation
|
||||
#define hue_tweak params.hue_tweak
|
||||
#define contrast params.contrast
|
||||
#define brightness params.brightness
|
||||
#define gamma params.gamma
|
||||
#define saturation params.nes_saturation
|
||||
#define hue_tweak params.nes_hue_tweak
|
||||
#define contrast params.nes_contrast
|
||||
#define brightness params.nes_brightness
|
||||
#define gamma params.nes_gamma
|
||||
|
||||
bool wave (int p, int color)
|
||||
{
|
||||
|
|
|
@ -19,24 +19,24 @@ layout(std140, set = 0, binding = 0) uniform UBO
|
|||
|
||||
layout(push_constant) uniform Push
|
||||
{
|
||||
float saturation;
|
||||
float hue_tweak;
|
||||
float contrast;
|
||||
float brightness;
|
||||
float gamma;
|
||||
float nes_saturation;
|
||||
float nes_hue_tweak;
|
||||
float nes_contrast;
|
||||
float nes_brightness;
|
||||
float nes_gamma;
|
||||
} params;
|
||||
|
||||
#pragma parameter saturation "Saturation" 1.0 0.0 5.0 0.05
|
||||
#pragma parameter hue_tweak "Hue" 0.0 -10.0 10.0 0.05
|
||||
#pragma parameter contrast "Contrast" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter brightness "Brightness" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter gamma "Gamma" 1.8 1.0 2.5 0.05
|
||||
#pragma parameter nes_saturation "Saturation" 1.0 0.0 5.0 0.05
|
||||
#pragma parameter nes_hue_tweak "Hue" 0.0 -10.0 10.0 0.05
|
||||
#pragma parameter nes_contrast "Contrast" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter nes_brightness "Brightness" 1.0 0.0 2.0 0.05
|
||||
#pragma parameter nes_gamma "Gamma" 1.8 1.0 2.5 0.05
|
||||
|
||||
#define saturation params.saturation
|
||||
#define hue_tweak params.hue_tweak
|
||||
#define contrast params.contrast
|
||||
#define brightness params.brightness
|
||||
#define gamma params.gamma
|
||||
#define saturation params.nes_saturation
|
||||
#define hue_tweak params.nes_hue_tweak
|
||||
#define contrast params.nes_contrast
|
||||
#define brightness params.nes_brightness
|
||||
#define gamma params.nes_gamma
|
||||
|
||||
bool wave (int p, int color)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue