instantreality 1.0

Component:
Shape
Status:
fully implemented
Structure type:
concrete
Standard:
Avalon

BlendMode

The BlendMode controls blending and alpha test. Pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (the destination values).

Inheritance

Code

XML encoding
<BlendMode srcFactor='src_alpha'
destFactor='one_minus_src_alpha'
color='1 1 1'
colorTransparency='0'
alphaFunc='none'
alphaFuncValue='0'
equation='none'
logFeature=''
 />
Classic encoding
BlendMode {
	srcFactor "src_alpha"
	destFactor "one_minus_src_alpha"
	color 1 1 1
	colorTransparency 0
	alphaFunc "none"
	alphaFuncValue 0
	equation "none"
	logFeature [""]
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
SFString srcFactor SFString inputOutput src_alpha [none, zero, one, dst_color, src_color, one_minus_dst_color, one_minus_src_color, src_alpha, one_minus_src_alpha, dst_alpha, one_minus_dst_alpha, src_alpha_saturate, constant_color, one_minus_constant_color, constant_alpha, one_minus_constant_alpha] The incoming pixel is scaled according to the method defined by the source factor.
SFString destFactor SFString inputOutput one_minus_src_alpha [none, zero, one, dst_color, src_color, one_minus_dst_color, one_minus_src_color, src_alpha, one_minus_src_alpha, dst_alpha, one_minus_dst_alpha, src_alpha_saturate, constant_color, one_minus_constant_color, constant_alpha, one_minus_constant_alpha] The frame buffer pixel is scaled according to the method defined by the destination factor.
SFColor color SFColor inputOutput 1 1 1 This is the constant color used by blend modes constant.
SFFloat colorTransparency SFFloat inputOutput 0 This is the constant alpha used by blend modes constant.
SFString alphaFunc SFString inputOutput none [none, never, less, equal, lequal, greater, notequal, gequal, always] The alphaFunc defines how fragments which do not fulfill a certain condition are handled.
SFFloat alphaFuncValue SFFloat inputOutput 0 The value used in alpha comparison, useful for discarding certain fragments.
SFString equation SFString inputOutput none [none, func_add, func_subtract, func_reverse_subtract, min, max, logic_op] An additional equation used to combine source, destination and the constant value.
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element