Guest User

5902a0977017113e-vs_replace.txt

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