d3d11: stripped the reflection stuff from the d3d11 renderer. we'll do that stuff explicitly instead of having to deal with microsoft's api. its just more reliable.
openal: doppler now applies to openal more consistently. vulkan: vk_loadglsl cvar enables vk_nv_glsl_shader, with support for existing glsl shaders (still no permutations for now). needs !!samps stuff. vulkan: r_renderscale now partly works. r_fxaa also works under specific circumstances. needs more work. still no bloom or projections stuff. menu_download: got a few tweaks to improve it, including zips. I still want to handle engine updates with this stuff, but that can wait for later. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5008 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ec623409ff
commit
eccfe6b560
43 changed files with 6506 additions and 5335 deletions
|
@ -311,7 +311,7 @@ static cvar_t s_al_debug = CVAR("s_al_debug", "0");
|
|||
static cvar_t s_al_use_reverb = CVAR("s_al_use_reverb", "1");
|
||||
static cvar_t s_al_max_distance = CVARFC("s_al_max_distance", "1000",0,OnChangeALSettings);
|
||||
static cvar_t s_al_speedofsound = CVARFC("s_al_speedofsound", "343.3",0,OnChangeALSettings);
|
||||
static cvar_t s_al_dopplerfactor = CVARFC("s_al_dopplerfactor", "3.0",0,OnChangeALSettings);
|
||||
static cvar_t s_al_dopplerfactor = CVARFC("s_al_dopplerfactor", "1.0",0,OnChangeALSettings);
|
||||
static cvar_t s_al_distancemodel = CVARFC("s_al_distancemodel", "2",0,OnChangeALSettings);
|
||||
static cvar_t s_al_rolloff_factor = CVAR("s_al_rolloff_factor", "1");
|
||||
static cvar_t s_al_reference_distance = CVAR("s_al_reference_distance", "120");
|
||||
|
@ -504,7 +504,13 @@ static void OpenAL_ListenerUpdate(soundcardinfo_t *sc, int entnum, vec3_t origin
|
|||
{
|
||||
oalinfo_t *oali = sc->handle;
|
||||
|
||||
VectorScale(velocity, (snd_doppler.value?snd_doppler.value:s_al_velocityscale.value)/35.0, oali->ListenVel);
|
||||
if (snd_doppler.modified)
|
||||
{
|
||||
snd_doppler.modified = false;
|
||||
OnChangeALSettings(NULL,NULL);
|
||||
}
|
||||
|
||||
VectorScale(velocity, s_al_velocityscale.value/35.0, oali->ListenVel);
|
||||
VectorCopy(origin, oali->ListenPos);
|
||||
|
||||
oali->ListenEnt = entnum;
|
||||
|
@ -994,7 +1000,7 @@ static void QDECL OnChangeALSettings (cvar_t *var, char *value)
|
|||
palSpeedOfSound(s_al_speedofsound.value);
|
||||
|
||||
if (palDopplerFactor)
|
||||
palDopplerFactor(s_al_dopplerfactor.value);
|
||||
palDopplerFactor(s_al_dopplerfactor.value * snd_doppler.value);
|
||||
|
||||
if (palDistanceModel)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue