Line 181... |
Line 181... |
36: I = { `RETURN ,`RT_TRUE };
|
36: I = { `RETURN ,`RT_TRUE };
|
|
|
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
//This is the main sub-routine
|
//This is the main sub-routine
|
//TAG_ADRR_MAIN:
|
//TAG_ADRR_MAIN:
|
37: I = { `ZERO ,`CREG_HIT ,`VOID ,`VOID };
|
37: I = { `NOP ,`RT_FALSE };
|
//Generate the ray, but this is wrong, it has to generate only once for all the triangles..
|
//Generate the ray, but this is wrong, it has to generate only once for all the triangles..
|
38: I = { `JNEX ,`LABEL_MAIN_TEST_INTERSECTION ,`CREG_PRIMITIVE_COUNT ,`CREG_MAX_PRIMITIVES };
|
38: I = { `JNEX ,`LABEL_MAIN_TEST_INTERSECTION ,`CREG_PRIMITIVE_COUNT ,`CREG_MAX_PRIMITIVES };
|
39: I = { `CALL ,`ENTRYPOINT_ADRR_RGU ,`VOID ,`VOID };
|
39: I = { `CALL ,`ENTRYPOINT_ADRR_RGU ,`VOID ,`VOID };
|
40: I = { `NOP ,`RT_FALSE };
|
40: I = { `ZERO ,`CREG_HIT ,`VOID ,`VOID };
|
41: I = { `RESCALE ,`CREG_PRIMITIVE_COUNT ,`CREG_MAX_PRIMITIVES ,`VOID };
|
41: I = { `RESCALE ,`CREG_PRIMITIVE_COUNT ,`CREG_MAX_PRIMITIVES ,`VOID };
|
|
|
//LABEL_MAIN_TEST_INTERSECTION:
|
//LABEL_MAIN_TEST_INTERSECTION:
|
//Check ofr triangle intersection
|
//Check ofr triangle intersection
|
42: I = { `NOP ,`RT_FALSE };
|
42: I = { `NOP ,`RT_FALSE };
|