-#ifndef DEPTH_COMPARE_H
-#define DEPTH_COMPARE_H
-
+#pragma once
#include "vg/vg_m.h"
+#include "skaterift.h"
#include "render.h"
-static void depth_compare_bind(
+static inline void depth_compare_bind(
void (*uTexSceneDepth)(int),
void (*uInverseRatioDepth)(v3f),
void (*uInverseRatioMain)(v3f),
- camera *cam ){
+ vg_camera *cam )
+{
uTexSceneDepth( 5 );
render_fb_bind_texture( gpipeline.fb_main, 2, 5 );
v3f inverse;
inverse[2] = cam->farz-cam->nearz;
uInverseRatioMain( inverse );
}
-
-#endif /* DEPTH_COMPARE_H */