Kaynağa Gözat

Write the expected range

Marco Bellan 9 yıl önce
ebeveyn
işleme
80777e880b
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      Source/BansheeCore/Include/BsPixelUtil.h

+ 2 - 2
Source/BansheeCore/Include/BsPixelUtil.h

@@ -190,7 +190,7 @@ namespace BansheeEngine
 		 */
 		 */
         static void unpackColor(float* r, float* g, float* b, float* a, PixelFormat format, const void* src); 
         static void unpackColor(float* r, float* g, float* b, float* a, PixelFormat format, const void* src); 
 
 
-		/** Writes a depth value to the provided memory location. */
+		/** Writes a depth value to the provided memory location. Depth should be in [0,1]*/
 		static void packDepth(float depth, const PixelFormat format, void* dest);
 		static void packDepth(float depth, const PixelFormat format, void* dest);
 
 
 		/** Reads the depth from the provided memory location. Value ranges in [0, 1]. */
 		/** Reads the depth from the provided memory location. Value ranges in [0, 1]. */
@@ -233,4 +233,4 @@ namespace BansheeEngine
     };
     };
 
 
 	/** @} */
 	/** @} */
-}
+}