Преглед изворни кода

fixed atan2 directx support

ncannasse пре 7 година
родитељ
комит
57f2de78d9
1 измењених фајлова са 2 додато и 0 уклоњено
  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));