+ if ( value[ 0 ] != '\0' ) {
+ if ( strcmp( value, "none" ) ) {
+ sprintf( shader, "textures/%s", value );
+ celShader = ShaderInfoForShader( shader );
+ Sys_Printf( "Entity %d (%s) has cel shader %s\n", mapEnt->mapEntityNum, classname, celShader->shader );
+ }
+ else
+ {
+ celShader = NULL;
+ }
+ }
+ else{
+ celShader = ( *globalCelShader ? ShaderInfoForShader( globalCelShader ) : NULL );
+ }
+
+ /* jal : entity based _shadeangle */
+ shadeAngle = 0.0f;
+ if ( strcmp( "", ValueForKey( mapEnt, "_shadeangle" ) ) ) {
+ shadeAngle = FloatForKey( mapEnt, "_shadeangle" );
+ }
+ /* vortex' aliases */
+ else if ( strcmp( "", ValueForKey( mapEnt, "_smoothnormals" ) ) ) {
+ shadeAngle = FloatForKey( mapEnt, "_smoothnormals" );
+ }
+ else if ( strcmp( "", ValueForKey( mapEnt, "_sn" ) ) ) {
+ shadeAngle = FloatForKey( mapEnt, "_sn" );
+ }
+ else if ( strcmp( "", ValueForKey( mapEnt, "_smooth" ) ) ) {
+ shadeAngle = FloatForKey( mapEnt, "_smooth" );
+ }
+
+ if ( shadeAngle < 0.0f ) {
+ shadeAngle = 0.0f;
+ }
+
+ if ( shadeAngle > 0.0f ) {
+ Sys_Printf( "Entity %d (%s) has shading angle of %.4f\n", mapEnt->mapEntityNum, classname, shadeAngle );
+ }
+
+ /* jal : entity based _samplesize */
+ lightmapSampleSize = 0;
+ if ( strcmp( "", ValueForKey( mapEnt, "_lightmapsamplesize" ) ) ) {
+ lightmapSampleSize = IntForKey( mapEnt, "_lightmapsamplesize" );
+ }
+ else if ( strcmp( "", ValueForKey( mapEnt, "_samplesize" ) ) ) {
+ lightmapSampleSize = IntForKey( mapEnt, "_samplesize" );
+ }
+
+ if ( lightmapSampleSize < 0 ) {
+ lightmapSampleSize = 0;
+ }
+
+ if ( lightmapSampleSize > 0 ) {
+ Sys_Printf( "Entity %d (%s) has lightmap sample size of %d\n", mapEnt->mapEntityNum, classname, lightmapSampleSize );
+ }
+