Le modèle d’éclairage que nous allons utiliser est le modèle
de Phong. Ce modèle nous permettra d’appliquer une
couleur diffuse et une spécularité à notre surface d’eau. Notons
que nous n’ajouterons pas de terme ambiant au modèle.
D’abord, la couleur diffuse suit simplement la loi du cosinus
de Lambert. Ainsi, la couleur diffuse du matériau est
modulée avec le cosinus de l’angle entre la lumière et la normale
à la surface d’eau, qui est simplement le produit scalaire
entre les deux vecteurs (compte tenu qu’ils sont normalisés).