Hi,
I have a bug with following shader :
--------------------------
int material(vec3 p,int groups)
{
if ( in_group(0) ) {
if (sqrt(exp2(p.x)+exp2(p.y)) < 1/cos(atan(p.x, p.y))) {
return 0;
}
}
return -1;
}
--------------------------
I obtains following message:
--------------------------
[module::order] done in 00:00:00. <OK>
[module::travel] ERROR(no path in first layer??)
[module::skirt] **ASSERT FAILED** first_tool > -1, file ..\..\..\SLEFEBVR\PRO
JECTS\ICESL\icesl-devel\trunk\modules\skirt\Skirt.cpp, line 48
--------------------------
The script is:
--------------------------
emit(translate(0.5, 0.5, 0.5) * box(1) , 0 )
load_material_shader('tuto_shader1.sh')
set_group_color(1, 0.3,1.0,0.3);
set_group_color(0, 0.3,0.3,1.0);
--------------------------
PS : I have tried to add conditions for p.x and p.y not to be null at the same time but it does not change the result.
regards,
Loïc