Browse Source

fixed atan2 directx support

ncannasse 7 năm trước cách đây
mục cha
commit
57f2de78d9
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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));