Guest User

5859afa500790c8c-vs_replace.txt

a guest
Nov 26th, 2021
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. // ---- Created with 3Dmigoto v1.3.16 on Sat Nov 06 23:22:18 2021
  2.  
  3. cbuffer _Globals : register(b0)
  4. {
  5. float4 cDiff : packoffset(c0);
  6. float4 cAmb : packoffset(c1);
  7. row_major float4x4 mW2P : packoffset(c2);
  8. float4 mL2W[192] : packoffset(c6);
  9. }
  10.  
  11.  
  12.  
  13. // 3Dmigoto declarations
  14. #define cmp -
  15. Texture1D<float4> IniParams : register(t120);
  16. Texture2D<float4> StereoParams : register(t125);
  17.  
  18.  
  19. void main(
  20. float4 v0 : POSITION0,
  21. float4 v1 : COLOR0,
  22. float4 v2 : TEXCOORD0,
  23. float2 v3 : TEXCOORD1,
  24. float v4 : BLENDWEIGHT0,
  25. out float4 o0 : SV_Position0,
  26. out float4 o1 : TEXCOORD0,
  27. out float4 o2 : TEXCOORD1)
  28. {
  29. float4 r0,r1;
  30. uint4 bitmask, uiDest;
  31. float4 fDest;
  32.  
  33. r0.x = (int)v4.x;
  34. r0.y = (int)r0.x * 3;
  35. r0.xz = mad((int2)r0.xx, int2(3,3), int2(1,2));
  36. r0.y = dot(v0.xyzw, mL2W[r0.y].xyzw);
  37. r0.x = dot(v0.xyzw, mL2W[r0.x].xyzw);
  38. r0.z = dot(v0.xyzw, mL2W[r0.z].xyzw);
  39. r1.xyzw = mW2P._m10_m11_m12_m13 * r0.xxxx;
  40. r1.xyzw = r0.yyyy * mW2P._m00_m01_m02_m03 + r1.xyzw;
  41. r0.xyzw = r0.zzzz * mW2P._m20_m21_m22_m23 + r1.xyzw;
  42. o0.xyzw = v0.wwww * mW2P._m30_m31_m32_m33 + r0.xyzw;
  43. r0.xyzw = cDiff.xyzw * v1.xyzw;
  44. o1.xyzw = cAmb.xyzw * r0.xyzw;
  45. o2.xy = v2.xy;
  46. o2.zw = v3.yx;
  47. o0.x *= 0.5;
  48. return;
  49. }
  50.  
  51. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52. //
  53. // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
  54. //
  55. // using 3Dmigoto v1.3.16 on Sat Nov 06 23:22:18 2021
  56. //
  57. //
  58. // Buffer Definitions:
  59. //
  60. // cbuffer $Globals
  61. // {
  62. //
  63. // float4 cDiff; // Offset: 0 Size: 16
  64. // float4 cAmb; // Offset: 16 Size: 16
  65. // row_major float4x4 mW2P; // Offset: 32 Size: 64
  66. // float4 mL2W[192]; // Offset: 96 Size: 3072
  67. //
  68. // }
  69. //
  70. //
  71. // Resource Bindings:
  72. //
  73. // Name Type Format Dim Slot Elements
  74. // ------------------------------ ---------- ------- ----------- ---- --------
  75. // $Globals cbuffer NA NA 0 1
  76. //
  77. //
  78. //
  79. // Input signature:
  80. //
  81. // Name Index Mask Register SysValue Format Used
  82. // -------------------- ----- ------ -------- -------- ------- ------
  83. // POSITION 0 xyzw 0 NONE float xyzw
  84. // COLOR 0 xyzw 1 NONE float xyzw
  85. // TEXCOORD 0 xy 2 NONE float xy
  86. // TEXCOORD 1 xy 3 NONE float xy
  87. // BLENDWEIGHT 0 x 4 NONE float x
  88. //
  89. //
  90. // Output signature:
  91. //
  92. // Name Index Mask Register SysValue Format Used
  93. // -------------------- ----- ------ -------- -------- ------- ------
  94. // SV_Position 0 xyzw 0 POS float xyzw
  95. // TEXCOORD 0 xyzw 1 NONE float xyzw
  96. // TEXCOORD 1 xyzw 2 NONE float xyzw
  97. //
  98. vs_5_0
  99. dcl_globalFlags refactoringAllowed
  100. dcl_constantbuffer cb0[198], dynamicIndexed
  101. dcl_input v0.xyzw
  102. dcl_input v1.xyzw
  103. dcl_input v2.xy
  104. dcl_input v3.xy
  105. dcl_input v4.x
  106. dcl_output_siv o0.xyzw, position
  107. dcl_output o1.xyzw
  108. dcl_output o2.xyzw
  109. dcl_temps 2
  110. ftoi r0.x, v4.x
  111. imul null, r0.y, r0.x, l(3)
  112. imad r0.xz, r0.xxxx, l(3, 0, 3, 0), l(1, 0, 2, 0)
  113. dp4 r0.y, v0.xyzw, cb0[r0.y + 6].xyzw
  114. dp4 r0.x, v0.xyzw, cb0[r0.x + 6].xyzw
  115. dp4 r0.z, v0.xyzw, cb0[r0.z + 6].xyzw
  116. mul r1.xyzw, r0.xxxx, cb0[3].xyzw
  117. mad r1.xyzw, r0.yyyy, cb0[2].xyzw, r1.xyzw
  118. mad r0.xyzw, r0.zzzz, cb0[4].xyzw, r1.xyzw
  119. mad o0.xyzw, v0.wwww, cb0[5].xyzw, r0.xyzw
  120. mul r0.xyzw, v1.xyzw, cb0[0].xyzw
  121. mul o1.xyzw, r0.xyzw, cb0[1].xyzw
  122. mov o2.xy, v2.xyxx
  123. mov o2.zw, v3.yyyx
  124. ret
  125. // Approximately 15 instruction slots used
  126.  
  127. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  128.  
Add Comment
Please, Sign In to add comment