mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-01-22 00:11:20 +00:00
forcing the nopicmip flag on specific texture folders
for now: "textures/npmenv" and "textures/npmpads"
This commit is contained in:
parent
6b9d35df8c
commit
3e18b2d0e1
2 changed files with 13 additions and 0 deletions
|
@ -55,6 +55,8 @@ add: /waitms <milliseconds> to delay command executions by the specified number
|
|||
add: r_alphaToCoverageMipBoost <0.0 to 0.5> (default: 0.125) boosts the alpha value of higher mip levels
|
||||
with A2C enabled, it prevents alpha-tested surfaces from fading (too much) in the distance
|
||||
|
||||
chg: forcing the nopicmip flag on 2 new texture folders: "textures/npmenv" and "textures/npmpads"
|
||||
|
||||
chg: r_vertexLight 1 no longer collapses shaders but replaces lightmaps with vertex colors
|
||||
for transparent shaders, lightmaps are still used because vertex colors are broken on some maps
|
||||
|
||||
|
|
|
@ -265,6 +265,17 @@ static void Upload32( image_t* image, unsigned int* data )
|
|||
}
|
||||
}
|
||||
|
||||
const char* npmImageDirs[] = {
|
||||
"textures/npmenv/",
|
||||
"textures/npmpads/"
|
||||
};
|
||||
for ( int i = 0; i < ARRAY_LEN( npmImageDirs ); ++i ) {
|
||||
if ( !Q_stricmpn( image->name, npmImageDirs[i], strlen( npmImageDirs[i] ) ) ) {
|
||||
image->flags |= IMG_NOPICMIP;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int scaled_width, scaled_height;
|
||||
|
||||
// convert to exact power of 2 sizes
|
||||
|
|
Loading…
Reference in a new issue