mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Direct3D 9 supports LOD bias
This commit is contained in:
parent
95d85819b0
commit
a0409c54c1
@ -293,6 +293,9 @@ apply_texture(int i, TextureContext *tc, const SamplerState &sampler) {
|
||||
set_sampler_state(i, D3DSAMP_MINFILTER, new_min_filter);
|
||||
set_sampler_state(i, D3DSAMP_MIPFILTER, new_mip_filter);
|
||||
|
||||
float lod_bias = sampler.get_lod_bias();
|
||||
set_sampler_state(i, D3DSAMP_MIPMAPLODBIAS, *(DWORD*)&lod_bias);
|
||||
|
||||
_d3d_device->SetTexture(i, dtc->get_d3d_texture());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user