if ( ( si != NULL && si->forceMeta ) || ( spawnFlags & 4 ) ) { /* 3rd bit */
ds->type = SURFACE_FORCED_META;
}
-
+/* else
+ {
+ //fix not requested lightmapping of models :E
+ // else force vertexlit
+ // ApplySurfaceParm( "pointlight", &si->contentFlags, &si->surfaceFlags, &si->compileFlags );
+ // si->compileFlags |= C_VERTEXLIT;
+ //ds->type == SURFACE_TRIANGLES;
+ }
+*/
/* fix the surface's normals (jal: conditioned by shader info) */
if ( !( spawnFlags & 64 ) && ( shadeAngle == 0.0f || ds->type != SURFACE_FORCED_META ) ) {
PicoFixSurfaceNormals( surface );
else if ( strcmp( "", ValueForKey( e2, "_samplesize" ) ) ) {
lightmapSampleSize = IntForKey( e2, "_samplesize" );
}
+ else if ( strcmp( "", ValueForKey( e2, "_ss" ) ) ) {
+ lightmapSampleSize = IntForKey( e2, "_ss" );
+ }
if ( lightmapSampleSize < 0 ) {
lightmapSampleSize = 0;
else if ( strcmp( "", ValueForKey( e2, "_sn" ) ) ) {
shadeAngle = FloatForKey( e2, "_sn" );
}
+ else if ( strcmp( "", ValueForKey( e2, "_sa" ) ) ) {
+ shadeAngle = FloatForKey( e2, "_sa" );
+ }
else if ( strcmp( "", ValueForKey( e2, "_smooth" ) ) ) {
shadeAngle = FloatForKey( e2, "_smooth" );
}