Explorar o código

getPixelF support for RG32F

trethaller %!s(int64=4) %!d(string=hai) anos
pai
achega
efdabc353b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;