Normal geometry has a default effect; geometry with no default effect
is unlikely to look correct with no state set applied. This fixes the
problem of clouds being displayed as multi-colored rectangles when
shader effects are turned off.
}
Effect* effect = eg->getEffect();
Technique* technique = 0;
- if (!(effect && (technique = effect->chooseTechnique(&getRenderInfo())))) {
+ if (!effect) {
CullVisitor::apply(node);
return;
+ } else if (!(technique = effect->chooseTechnique(&getRenderInfo()))) {
+ return;
}
// push the node's state.
osg::StateSet* node_state = node.getStateSet();