33 lines
1012 B
Bash
33 lines
1012 B
Bash
/*
|
|
* Copyright 2021 elven cache. All rights reserved.
|
|
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
|
|
*/
|
|
|
|
#ifndef PARAMETERS_SH
|
|
#define PARAMETERS_SH
|
|
|
|
uniform vec4 u_params[13];
|
|
|
|
#define u_jitterCurr (u_params[0].xy)
|
|
#define u_jitterPrev (u_params[0].zw)
|
|
#define u_feedbackMin (u_params[1].x)
|
|
#define u_feedbackMax (u_params[1].y)
|
|
#define u_applyMitchellFilter (u_params[2].y)
|
|
|
|
#define u_worldToViewPrev0 (u_params[3])
|
|
#define u_worldToViewPrev1 (u_params[4])
|
|
#define u_worldToViewPrev2 (u_params[5])
|
|
#define u_worldToViewPrev3 (u_params[6])
|
|
#define u_viewToProjPrev0 (u_params[7])
|
|
#define u_viewToProjPrev1 (u_params[8])
|
|
#define u_viewToProjPrev2 (u_params[9])
|
|
#define u_viewToProjPrev3 (u_params[10])
|
|
|
|
#define u_frameIdx (u_params[11].x)
|
|
#define u_noiseType (u_params[11].y) // 0=none, 1=dither, 2=random
|
|
#define u_texCoordStep (u_params[12].x)
|
|
#define u_sigmaDepth (u_params[12].y)
|
|
#define u_sigmaNormal (u_params[12].z)
|
|
|
|
#endif // PARAMETERS_SH
|