public interface KVisibleSetTranslucentsBuilderType
Modifier and Type | Method and Description |
---|---|
void |
visibleTranslucentsAddLit(KInstanceTranslucentLitType instance,
Set<KLightTranslucentType> lights)
Add an instance
instance which is expected to have a
translucent material lit by lights lights . |
void |
visibleTranslucentsAddUnlit(KInstanceTranslucentUnlitType instance)
Add an instance
instance which is expected to have a
translucent material and is unaffected by lighting. |
void visibleTranslucentsAddLit(KInstanceTranslucentLitType instance, Set<KLightTranslucentType> lights) throws RExceptionBuilderInvalid
Add an instance instance
which is expected to have a
translucent material lit by lights lights
. The instance will
not cast a shadow, even if any lights
are configured to
produce them.
Translucent instances are rendered in the order that they are added to
the scene. If translucent instance B
is added to the scene
after translucent instance A
, then B
will be
rendered on top of A
, even if A
is closer to
the observer than B
. Due to depth buffering, translucent
instances will correctly overlap and be overlapped by opaque instances,
without needing to be added to the scene in any particular order with
respect to opaque instances.
lights
- The set of lights affecting the instanceinstance
- The instanceRExceptionBuilderInvalid
- If the builder has been invalidatedvoid visibleTranslucentsAddUnlit(KInstanceTranslucentUnlitType instance) throws RExceptionBuilderInvalid
Add an instance instance
which is expected to have a
translucent material and is unaffected by lighting.
instance
- The unlit instanceRExceptionBuilderInvalid
- If the builder has been invalidatedCopyright © 2015 <code@io7m.com> http://io7m.com