Appearance节点

Appearance {

material NULL # exposed field SFNode
texture NULL # exposed field SFNode
textureTransform NULL # exposed field SFNode

}

 

material 包含一个Material节点。 
texture 包含一个ImageTexture、MovieTexture或者PixelTexture节点。 
textureTransform 包含一个TextureTransform节点,如果texture域为NULL,则textureTransform域无效。
 
说明
    Appearance节点仅在Shape节点中的appearance域中出现。该节点中所有域值均可为NULL。然而,一旦某个域包含非零节点,则被包含节点必须包含一个上述相应类型的节点。
    如果material域是NULL,与Appearance相关的几何形体是不亮的,也就是说在绘制这个几何形体时忽略所有光照。但是,如果material域包含一个缺省得材料节点,那么这个几何形体用缺省的材料节点的值照亮。也即,在一个造型节点中指定appearance域为
     appearance Appearance{ }
结果是没有光照,而若指定aooearance域为
     appearance Appearance{ material{ }}
光照将基于缺省材料值。

主页 节点说明 来信