| 1 |
Fromscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`07_cgutil.cpp.patch`#From.: Morten Kjeldgaard <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Subjectscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/patches/`07_cgutil.cpp.patch`#Subject.: modification to source code |
| 3 |
|
| 4 |
|
| 5 |
--- a/src/CgUtil.cppscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/upstream/`src/CgUtil.cpp`: |
| 6 |
+++ b/src/CgUtil.cppscip-debian debian qutemol 0.4.1~cvs20081111-15 qutemol/upstream/`src/CgUtil.cpp`: |
| 7 |
@@ -33,7 +33,7 @@ |
| 8 |
return ((P_double_shadows) && (can_use_doubleshadow())); |
| 9 |
} |
| 10 |
|
| 11 |
|
| 12 |
+static char* FORMAT=(char *)"void CgUtil::Set(int K){\nif (K==0){\n P_light_base = %f ;\n P_lighting = %f ;\n P_phong = %f ;\n P_phong_size = %f ;\n P_col_atoms_sat = %f ;\n P_col_atoms_bri = %f ;\n P_texture = %f ;\n P_border_inside = %f ;\n P_border_outside = %f ;\n P_depth_full = %f ;\n P_sem_effect = %d ;\n P_halo_size = %f ;\n P_halo_col = %f ;\n P_halo_str = %f ;\n P_halo_aware = %f ;\n P_fog = %f ;\n P_capping = %d ;\n P_shadowstrenght = %f ;\n P_bg_color_R = %f ;\n P_bg_color_G = %f ;\n P_bg_color_B = %f ;\n auto_normalize = %d ;\n P_double_shadows = %d ;\n P_border_fixed = %d ;\n}\n}"; |
| 13 |
|
| 14 |
bool CgUtil::Load(const char* filename){ |
| 15 |
FILE *f=fopen(filename, "rt"); |
| 16 |
@@ -700,7 +700,7 @@ |
| 17 |
if ((!do_use_doubleshadow())&&(P_light_base>0)) { |
| 18 |
sprintf(fp,"%s\n\ |
| 19 |
CMP t.z, lighting.z, 1, t.z; # if light<0, then in shadow \n\ |
| 20 |
|
| 21 |
+" ,fp); //,1.0-P_shadowstrenght); // error here |
| 22 |
} |
| 23 |
|
| 24 |
if (P_shadowstrenght<1) { |
| 25 |
@@ -789,7 +789,7 @@ |
| 26 |
} else { |
| 27 |
if (P_col_atoms_bri<1.0) |
| 28 |
{ |
| 29 |
|
| 30 |
+ sprintf(fp,"%s%s",fp,"MUL res, res, %5.3f;\n"); //, P_col_atoms_bri ); // error here |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
@@ -1499,7 +1499,7 @@ |
| 35 |
MAD t, t, 0.5, 0.5; \n\ |
| 36 |
MAD t, t, {%5.2f,%5.2f,0,0}, {%5.2f, %5.2f, 0,0}; \n\ |
| 37 |
MAD t, {%5.2f,%5.2f,0,0}, disp, t; \n\n", |
| 38 |
|
| 39 |
+ fp, CSIZE-gap*2.0, CSIZE-gap*2.0, gap, gap, (double)CSIZE, (double)CSIZE ); |
| 40 |
|
| 41 |
else sprintf(fp, "%s\n\n\ |
| 42 |
## TEXTURING OCTAMAP STYLE \n\ |