Professional Documents
Culture Documents
Illume Nation
Illume Nation
משולש V1
קודקוד
T1 e3
T2 e0
}e0 : {v1,v2צלע T0 V0
}T2 :{v0,v1,v2משולש T3
e1
e2
דוגמאות
כך זה נראה בגדול
נוסיף צבע לעולם
ועוד תאורה ...
נעדן את התאורה ..
עכשיו זה נראה בסדר
עם כל השיפורים
Illumination and Shading
Light in Reflection
• How to shade a surface Reflection Specular
N
dA dA/cos( )
S1 S2
Combining Shading Models
1
f
att dl2
1
f min(1,
att ad 2 bd c
Specular Reflection
Phone Illumination N
Developed by Phong Bui-Toung for nonperfect L R
reflection. The model assumes that the maximum
specular reflection occurs when is zero and falls V
off sharply as increases. The rapid falloff is
approximated by cos n() .
I = Ia Ka +
fatt Id [KdOd cos() +W()cos n()]
Od :Object diffuse factor.
W():Factor of specular reflection light
Specular Reflection
Shading Models for Polygons
Shading
We can shade a surface by calculating the surface normal at each visible
point and applying the desired model at that point.
Interpolated Shading
Shading information is linearly interpolated across triangle from illumination
values determined at it vertices
Polygon Mesh Shading
Gouraud Shading extends the concept of interpolated shading applied
to individual polygons by interpolating polygon vertex illumination values
that take into account the surface being approximated.
A vertex intensity is computed by using the vertex
normal with any desired shading model.