浏览代码

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));