Return to previous page Return to menu Go to next page

Color calculation

With VDP1, you can specify Gouraud shading, shadow, semi-brightness, and translucent color operations. Table 3.6 shows the types of color calculation.

Table 3.6 Color operation types
 species 
 contents 
 Translucent 
 Add the half of the background brightness and the half of the original picture brightness. , 
Draw the result in the frame buffer.
 Half brightness 
 Draws the original picture in half in the frame buffer. Since the background is overwritten by 
, the background is not visible and the brightness of the original picture is halved.
 Shadow 
 Redraw the half of the background brightness in the frame buffer. In this case, you can make a shadow of the character of the original picture. The original picture character is used only for the shape of the shadow 
, and the color data is ignored.
 Gouraud shading 
 Draw 
the original picture with Gouraud shading in the frame buffer .
 Gouraud shading 
Translucent
 The brightness of the original picture multiplied by Gouraud shading is reduced by half. , 
Adds half the background brightness. The result is drawn in the frame buffer
.
 Gouraud shading 
Half brightness
 Glow shading of the original picture is reduced by half , 
Draw in the frame buffer.

Gouraud shading
Gouraud shading can only be applied to parts drawn in RGB. Gouraud shading is a method of interpolating colors between polygon vertices to make the plane look like a curved surface.
∙ Brightness correction values ​​are given to the four vertices of the polygon, and Gouraud shading is applied between the four vertices to make it look like a curved surface. In addition to polygons, Gouraud shading can be applied to polylines and lines. Figure 3.6 shows an example of Gouraud shading.


Return to previous page Return to menu Go to next page