From 8693f1887063d2ddd992c693c3f65ee12c99105a Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 11 Oct 2008 10:11:27 +0000 Subject: [PATCH] corrected function description --- panda/src/grutil/geoMipTerrain.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/panda/src/grutil/geoMipTerrain.cxx b/panda/src/grutil/geoMipTerrain.cxx index 6264daa449..14cb2f472e 100644 --- a/panda/src/grutil/geoMipTerrain.cxx +++ b/panda/src/grutil/geoMipTerrain.cxx @@ -320,9 +320,11 @@ get_normal(int x, int y) { // Function: GeoMipTerrain::make_slope_image // Access: Published // Description: Returns a new grayscale image containing the slope -// angles. A pixel value of 1.0 will mean 90 degrees, -// meaning, horizontal, a pixel value of 0.0 will -// mean 0 degrees, or entirely vertical. +// angles. A white pixel value means a vertical slope, +// while a black pixel will mean that the terrain is +// entirely flat at that pixel. +// You can translate it to degrees by mapping the +// greyscale values from 0 to 90 degrees. // The resulting image will have the same size as the // heightfield image. // The scale will be taken into respect -- meaning,