Browse Source

getPixelF support for RG32F

trethaller 4 years ago
parent
commit
efdabc353b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      hxd/Pixels.hx

+ 3 - 0
hxd/Pixels.hx

@@ -468,6 +468,9 @@ class Pixels {
 		case R32F:
 			v.set(bytes.getFloat(p),0,0,0);
 			return v;
+		case RG32F:
+			v.set(bytes.getFloat(p), bytes.getFloat(p+4),0,0);
+			return v;
 		case RGBA32F:
 			v.set(bytes.getFloat(p), bytes.getFloat(p+4), bytes.getFloat(p+8), bytes.getFloat(p+12));
 			return v;