IBM TJ Watson Research

IBMPixelTextureRGB

IBMPixelTextureRGB.mp4

Description

A PixelTexture with three components as follows:
image 2 3 3 0xff00ff 0x00ffff
0x0000ff 0xffff00
0xff0000 0x00ff00

This RGB texture contains color information and overrides the emissiveColor of the Material2D. 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. The emissiveColors are not used and hence the resultant upper row of rectangles are identical and so are the lower row. Also the resultant textured upper and lower rectangles differ only by alpha value - the 1.0 versus 0.5 transparency of the Material2D.

Screenshot

Snapshot of rendered output.



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



Back to main index