Guest User

d1997dd8147c2a64-vs_replace.txt

a guest
Nov 26th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. // ---- Created with 3Dmigoto v1.3.16 on Sun Nov 07 14:30:05 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[3] : 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. float v2 : BLENDWEIGHT0,
  23. out float4 o0 : SV_Position0,
  24. out float4 o1 : TEXCOORD0)
  25. {
  26. float4 r0,r1;
  27. uint4 bitmask, uiDest;
  28. float4 fDest;
  29.  
  30. r0.x = (int)v2.x;
  31. r0.y = (int)r0.x * 3;
  32. r0.xz = mad((int2)r0.xx, int2(3,3), int2(1,2));
  33. r0.y = dot(v0.xyzw, mL2W[r0.y].xyzw);
  34. r0.x = dot(v0.xyzw, mL2W[r0.x].xyzw);
  35. r0.z = dot(v0.xyzw, mL2W[r0.z].xyzw);
  36. r1.xyzw = mW2P._m10_m11_m12_m13 * r0.xxxx;
  37. r1.xyzw = r0.yyyy * mW2P._m00_m01_m02_m03 + r1.xyzw;
  38. r0.xyzw = r0.zzzz * mW2P._m20_m21_m22_m23 + r1.xyzw;
  39. o0.xyzw = v0.wwww * mW2P._m30_m31_m32_m33 + r0.xyzw;
  40. r0.xyzw = cDiff.xyzw * v1.xyzw;
  41. o1.xyzw = cAmb.xyzw * r0.xyzw;
  42. o0.x *= 0.5;
  43. return;
  44. }
  45.  
  46. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  47. //
  48. // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
  49. //
  50. // using 3Dmigoto v1.3.16 on Sun Nov 07 14:30:05 2021
  51. //
  52. //
  53. // Buffer Definitions:
  54. //
  55. // cbuffer $Globals
  56. // {
  57. //
  58. // float4 cDiff; // Offset: 0 Size: 16
  59. // float4 cAmb; // Offset: 16 Size: 16
  60. // row_major float4x4 mW2P; // Offset: 32 Size: 64
  61. // float4 mL2W[3]; // Offset: 96 Size: 48
  62. //
  63. // }
  64. //
  65. //
  66. // Resource Bindings:
  67. //
  68. // Name Type Format Dim Slot Elements
  69. // ------------------------------ ---------- ------- ----------- ---- --------
  70. // $Globals cbuffer NA NA 0 1
  71. //
  72. //
  73. //
  74. // Input signature:
  75. //
  76. // Name Index Mask Register SysValue Format Used
  77. // -------------------- ----- ------ -------- -------- ------- ------
  78. // POSITION 0 xyzw 0 NONE float xyzw
  79. // COLOR 0 xyzw 1 NONE float xyzw
  80. // BLENDWEIGHT 0 x 2 NONE float x
  81. //
  82. //
  83. // Output signature:
  84. //
  85. // Name Index Mask Register SysValue Format Used
  86. // -------------------- ----- ------ -------- -------- ------- ------
  87. // SV_Position 0 xyzw 0 POS float xyzw
  88. // TEXCOORD 0 xyzw 1 NONE float xyzw
  89. //
  90. vs_5_0
  91. dcl_globalFlags refactoringAllowed
  92. dcl_constantbuffer cb0[9], dynamicIndexed
  93. dcl_input v0.xyzw
  94. dcl_input v1.xyzw
  95. dcl_input v2.x
  96. dcl_output_siv o0.xyzw, position
  97. dcl_output o1.xyzw
  98. dcl_temps 2
  99. ftoi r0.x, v2.x
  100. imul null, r0.y, r0.x, l(3)
  101. imad r0.xz, r0.xxxx, l(3, 0, 3, 0), l(1, 0, 2, 0)
  102. dp4 r0.y, v0.xyzw, cb0[r0.y + 6].xyzw
  103. dp4 r0.x, v0.xyzw, cb0[r0.x + 6].xyzw
  104. dp4 r0.z, v0.xyzw, cb0[r0.z + 6].xyzw
  105. mul r1.xyzw, r0.xxxx, cb0[3].xyzw
  106. mad r1.xyzw, r0.yyyy, cb0[2].xyzw, r1.xyzw
  107. mad r0.xyzw, r0.zzzz, cb0[4].xyzw, r1.xyzw
  108. mad o0.xyzw, v0.wwww, cb0[5].xyzw, r0.xyzw
  109. mul r0.xyzw, v1.xyzw, cb0[0].xyzw
  110. mul o1.xyzw, r0.xyzw, cb0[1].xyzw
  111. ret
  112. // Approximately 13 instruction slots used
  113.  
  114. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  115.  
Add Comment
Please, Sign In to add comment