|
@@ -223,6 +223,7 @@ class BufferFormat {
|
|
public static var POS3D_UV(get,null) : BufferFormat;
|
|
public static var POS3D_UV(get,null) : BufferFormat;
|
|
public static var POS3D_NORMAL_UV(get,null) : BufferFormat;
|
|
public static var POS3D_NORMAL_UV(get,null) : BufferFormat;
|
|
public static var POS3D_NORMAL_UV_RGBA(get,null) : BufferFormat;
|
|
public static var POS3D_NORMAL_UV_RGBA(get,null) : BufferFormat;
|
|
|
|
+ public static var VEC4_DATA(get,null) : BufferFormat;
|
|
|
|
|
|
static inline function get_H2D() return XY_UV_RGBA;
|
|
static inline function get_H2D() return XY_UV_RGBA;
|
|
static function get_XY_UV_RGBA() {
|
|
static function get_XY_UV_RGBA() {
|
|
@@ -253,6 +254,10 @@ class BufferFormat {
|
|
if( POS3D_UV == null ) POS3D_UV = make([{ name : "position", type : DVec3 },{ name : "uv", type : DVec2 }]);
|
|
if( POS3D_UV == null ) POS3D_UV = make([{ name : "position", type : DVec3 },{ name : "uv", type : DVec2 }]);
|
|
return POS3D_UV;
|
|
return POS3D_UV;
|
|
}
|
|
}
|
|
|
|
+ static function get_VEC4_DATA() {
|
|
|
|
+ if( VEC4_DATA == null ) VEC4_DATA = hxd.BufferFormat.make([{ name : "data", type : DVec4 }]);
|
|
|
|
+ return VEC4_DATA;
|
|
|
|
+ }
|
|
|
|
|
|
static var ALL_FORMATS = new Map<String,Array<BufferFormat>>();
|
|
static var ALL_FORMATS = new Map<String,Array<BufferFormat>>();
|
|
public static function make( inputs : Array<BufferInput> ) {
|
|
public static function make( inputs : Array<BufferInput> ) {
|