IBM TJ Watson Research

IBMPixelTextureRGBAlpha

IBMPixelTextureRGBAlpha.mp4

Description

A PixelTexture with four components as follows:
image 2 3 4 0x0000ff80 0x0000ffff
0x00ff0080 0x00ff00ff
0xff000080 0xff0000ff

This RGB texture contains color and alpha information and overrides both the emissiveColor and the transparency of the Material2D. The left hand pixels of the texture are all set to an alpha of 0x80 and the right hand to an alpha of 0xff. Note that the pixels are coded from bottom left to top right.

In this example there are eight rectangles onto which the PixelTexture is mapped. The four rectangles on the top row have their transparency set to 0.0 and those on the bottom row to 0.5.

The four rectangles on the left have the same emissiveColor of red but the value of red in the left pair is 1.0 and in the right pair is 0.5. On the right the emissive colors are green and blue on top and yellow and cyan below. Neither the emissiveColors nor the transparency values from the Material2Ds are used and hence the resultant upper and lower row of rectangles are identical.

Screenshot

Snapshot of rendered output.



Snapshot of rendered output if pixels are replicated instead of being interpolated.



Back to main index