1 #ifndef DEPTH_COMPARE_H
2 #define DEPTH_COMPARE_H
7 static void depth_compare_bind(
8 void (*uTexSceneDepth
)(int),
9 void (*uInverseRatioDepth
)(v3f
),
10 void (*uInverseRatioMain
)(v3f
),
13 render_fb_bind_texture( gpipeline
.fb_main
, 2, 5 );
15 render_fb_inverse_ratio( gpipeline
.fb_main
, inverse
);
16 inverse
[2] = skaterift
.cam
.farz
-skaterift
.cam
.nearz
;
18 uInverseRatioDepth( inverse
);
19 render_fb_inverse_ratio( NULL
, inverse
);
20 inverse
[2] = cam
->farz
-cam
->nearz
;
21 uInverseRatioMain( inverse
);
24 #endif /* DEPTH_COMPARE_H */