Drag[en]gine Game Engine  1.0
deDecal.h File Reference


class  deDecal
 Decal Resource. Decals are rectangular textures splatted on a curved surface like a component. Decals have a slight offset from the hosting surface hence they cover the surface below. The ordering of the decal determines which decal covers others. A decal is defined by projection parameters. The actual projection is carried out by the Graphic Module. A decal is first located in space using a position and orientation. The size determines the width and height of the decal on the projection plane previously defined. The texture coordinates defined the texture coordinates of the corners of the decal starting in the upper left corner going around the decal in clockwise order. The decal is then projected along the view direction on the geometry it is attached to. More...