Samples

Additive and subtractive blending effects

MascotCapsule V3 can apply additive and subtractive blending effects to the models when additive and subtractive blending attributes are specified for these models. Various rendering effects are available.




In order to use the additive and subtractive blending, specify the environment attribute in the IMICRO3D_Render_setAttribute() method. Use M3D_BLEND as an argument to specify the environment attribute for the additive and subtractive blending. Once specified, the environment attribute will be retained unless it is replaced by other attributes.

/* Environment attribute setting by the flag */
IMICRO3D_Render_setAttribute( pMe   -> pIM3D,
      &pMe  -> mc_data.render,
      pMe    -> mc_data.attr | M3D_BLEND );
Lightning effect ( additive blending ) enabled Lightning effect ( additive blending ) disabled
Lightning effect ( additive blending ) enabled ( left ), disabled ( right )


Page TopBack