diff options
author | chai <chaifix@163.com> | 2019-12-21 22:24:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-21 22:24:15 +0800 |
commit | ec111247c614663d8231245a17c314b9b8b4a28c (patch) | |
tree | a66058508161da488371c90316865ae850b8be15 /src/core/shader.h | |
parent | c3f45735ecfab6e567be371758f21395e92dfef6 (diff) |
*misc
Diffstat (limited to 'src/core/shader.h')
-rw-r--r-- | src/core/shader.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/shader.h b/src/core/shader.h index 15edf4c..9ae757b 100644 --- a/src/core/shader.h +++ b/src/core/shader.h @@ -4,6 +4,7 @@ #include "../math/math.h" #include "vert.h" #include "texture.h" +#include "framebuffer.h" typedef struct { /*built in varaibles*/ @@ -174,10 +175,13 @@ void ssrS_setregisters(int capacity); /*���üĴ���ָ�룬ָ��Ĵ�������fragment�Σ�ָ���ָ��fragmentIn�ṹ��*/ void ssrS_setupregisterpointers(int idx); -/*���üĴ���ָ�룬ָ��fragIn�ṹ*/ +/*set register accessor, point to fragin struct*/ void ssrS_setregtofragin(); #define tex2d(tex, uv) \ -texture_sampling(tex, ssr_getfiltermode(), ssr_getwrapmode(), (uv)->x, (uv)->y) +texture_sampling(tex, (uv)->x, (uv)->y) + +/*frame color buffer output*/ +Color32* out_color[RENDER_TARGET_COUNT]; #endif
\ No newline at end of file |