~ubuntu-branches/ubuntu/lucid/gimp/lucid-proposed

« back to all changes in this revision

Viewing changes to plug-ins/map-object/map-object-shade.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-02-26 19:10:31 UTC
  • mfrom: (1.1.22 upstream) (0.4.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100226191031-d11l96bebdllen1n
Tags: 2.6.8-2ubuntu1
* Merge with debian, remaining changes:
  + debian/patches/02_help-message.patch,
    debian/patches/03_gimp.desktop.in.in.patch:
    - updated some strings for ubuntu
  + debian/rules:
    - updated translation templates
  + debian/control:
    - set Vcs-Bzr url

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
      gimp_vector3_mul (&N, NL);
78
78
      gimp_vector3_sub (&NN, &N, &L);
79
79
      RV = gimp_vector3_inner_product (&NN, &V);
80
 
      RV = pow (RV, mapvals.material.highlight);
 
80
      RV = 0.0 < RV ? pow (RV, mapvals.material.highlight) : 0.0;
81
81
 
82
82
      /* Compute diffuse and specular intensity contribution */
83
83
      /* =================================================== */