Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Lighting, Transparency, and Shading

Light sources, color shading, and object transparency

Functions

camlight Create or move light object in camera coordinates
light Create light
lightangle Create or position light object in spherical coordinates
lighting Specify lighting algorithm
shading Set color shading properties
diffuse Calculate diffuse reflectance
material Control reflectance properties of surfaces and patches
specular Calculate specular reflectance
alim Set or query axes alpha limits
alpha Add transparency to objects in axes
alphamap Specify figure alphamap (transparency)

Topics

Lighting Overview

You can position light sources and adjust the characteristics of the objects that are reflecting the lights.

Selecting a Lighting Method

There are different methods used to calculate the face and edge coloring of lit objects, and the one you select depends on the results you want to obtain.

Reflectance Characteristics of Graphics Objects

You can specify the reflectance characteristics of patch and surface objects and thereby affect the way they look when lights are applied to the scene.

Add Transparency to Graphics Objects

The transparency of a graphics object determines the degree to which you can see through it. Add transparency to graphics objects to customize the look of your charts or reveal details about an object that are otherwise hidden.

Modify the Alphamap

Every figure has an associated alphamap, which is a vector of values ranging from 0 to 1. You can view or modify the alphamap.

Was this topic helpful?