Explorar o código

fixed atan2 directx support

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
57f2de78d9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      hxsl/HlslOut.hx

+ 2 - 0
hxsl/HlslOut.hx

@@ -290,6 +290,8 @@ class HlslOut {
 				decl("float4 packNormal( float3 n ) { return float4((n + 1.) * 0.5,1.); }");
 			case UnpackNormal:
 				decl("float3 unpackNormal( float4 p ) { return normalize(p.xyz * 2. - 1.); }");
+			case Atan:
+				decl("float atan( float y, float x ) { return atan2(y,x); }");
 			default:
 			}
 			add(GLOBALS.get(g));