port from perforce
This commit is contained in:
25
hgplus/obliterator/C/ogl2dx.hlsl
Normal file
25
hgplus/obliterator/C/ogl2dx.hlsl
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef OGL2DX
|
||||
#define OGL2DX
|
||||
|
||||
#define vec4 float4
|
||||
#define vec3 float3
|
||||
#define vec2 float2
|
||||
|
||||
#define ivec4 int4
|
||||
#define ivec3 int3
|
||||
#define ivec2 int2
|
||||
|
||||
#define uvec4 uint4
|
||||
#define uvec3 uint3
|
||||
#define uvec2 uint2
|
||||
|
||||
float atan(float y, float x) {
|
||||
return atan2(y, x);
|
||||
}
|
||||
|
||||
#define mix lerp
|
||||
#define fract frac
|
||||
|
||||
#include "utils.hlsl"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user