IBM TJ Watson Research

IBMPixelTextureGray

IBMPixelTextureGray.mp4

Description

A PixelTexture with one component as follows:
image 2 3 1 0xff 0xc0
0x80 0x40
0x00 0xff

This gray scale texture is used as an intensity map and modulates 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.

Screenshot

Snapshot of rendered output.



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



Back to main index