Table of contents Chapter index Previous slide Next slide 266
Syntax: PixelTexture

Mapping textures
Syntax: PixelTexture
  • A PixelTexture node specifies texture image pixels for texture mapping
  • image - texture image pixels
  • Image data - width, height, bytes/pixel, pixel values
  • Shape {
    
        appearance Appearance {
    
            material Material { }
    
            texture PixelTexture {
    
                image 2 1 3
    
                    0xFFFF00 0xFF0000
    
            }
    
        }
    
        geometry . . .
    
    }