Click on the filename to display or download the file.
c_contour.mi
declare shader
"c_contour" (
color "color" default 0 0 0 1,
scalar "width" default 1 )
version 1
apply texture
end declare
c_contour.c
#include "shader.h"
#include "contour_info.h"
struct c_contour {
miColor color;
miScalar width;
};
DLLEXPORT
int c_contour_version(void) { return 1; }
DLLEXPORT
miBoolean c_contour (
miContour_endpoint *result,
contour_info *info_near,
contour_info *info_far,
miState *state,
struct c_contour *params )
{
result->color = *mi_eval_color(¶ms->color);
result->width = *mi_eval_scalar(¶ms->width);
return miTRUE;
}
22 April 2008 23:39:59