mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
don't automatically do polygon smooth blending mode
This commit is contained in:
parent
185fbf613e
commit
b248ae9f04
@ -4510,19 +4510,15 @@ set_blend_mode() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_polygon_smooth_enabled &&
|
||||
(get_properties().get_frame_buffer_mode() & FrameBufferProperties::FM_alpha) != 0) {
|
||||
// For polygon smoothing, we need this special kind of blending,
|
||||
// but this only works if we have an alpha channel in the frame
|
||||
// buffer. We should also sort the polygons front-to-back, but
|
||||
// that's the application's problem.
|
||||
enable_multisample_alpha_one(false);
|
||||
enable_multisample_alpha_mask(false);
|
||||
enable_blend(true);
|
||||
_glBlendEquation(GL_FUNC_ADD);
|
||||
GLP(BlendFunc)(GL_SRC_ALPHA_SATURATE, GL_ONE);
|
||||
return;
|
||||
}
|
||||
// For best polygon smoothing, we need:
|
||||
// (1) a frame buffer that supports alpha
|
||||
// (2) sort polygons front-to-back
|
||||
// (3) glBlendFunc(GL_SRC_ALPHA_SATURATE, GL_ONE);
|
||||
//
|
||||
// Since these modes have other implications for the application, we
|
||||
// don't attempt to do this by default. If you really want good
|
||||
// polygon smoothing (and you don't have multisample support), do
|
||||
// all this yourself.
|
||||
|
||||
// Nothing's set, so disable blending.
|
||||
enable_multisample_alpha_one(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user