mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
cull: don't munge_points_to_quads if shader handles point size
This commit is contained in:
parent
b1f32e3f84
commit
845ec7a990
@ -90,6 +90,15 @@ munge_geom(GraphicsStateGuardianBase *gsg, GeomMunger *munger,
|
||||
geom_rendering = _internal_transform->get_geom_rendering(geom_rendering);
|
||||
unsupported_bits = geom_rendering & ~gsg_bits;
|
||||
|
||||
if (unsupported_bits & Geom::GR_per_point_size) {
|
||||
// If we have a shader that processes the point size, we can assume it
|
||||
// does the right thing.
|
||||
const ShaderAttrib *sattr;
|
||||
if (_state->get_attrib(sattr) && sattr->get_flag(ShaderAttrib::F_shader_point_size)) {
|
||||
unsupported_bits &= ~Geom::GR_per_point_size;
|
||||
}
|
||||
}
|
||||
|
||||
if (geom_rendering & Geom::GR_point_bits) {
|
||||
if (geom_reader.get_primitive_type() != Geom::PT_points) {
|
||||
if (singular_points ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user