summaryrefslogtreecommitdiff
path: root/src/shaders/common.h
blob: 2779c7b126943d3a1b570d759a5682a17b5fa3ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _SOFTSHADEROOM_COMMON_HEADER_H_
#define _SOFTSHADEROOM_COMMON_HEADER_H_

#include "../core/shader.h"

extern void ssrR_putline(int x0, int y0, int x1, int y1, Color color);

/*
** shader built in functions
*/
Vec3 normal_from_color(Color32 c32);

Mat4 mat4(Vec4* c1, Vec4* c2, Vec4* c3, Vec4* c4);
Mat3 mat3(Vec3* c1, Vec3* c2, Vec3* c3);

#endif