Advertisement
Guest User

Sekiro regex 2

a guest
Mar 23rd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. [ShaderRegexDecalsMain]
  2. shader_model = ps_5_0 cs_5_0
  3. temps = stereo iniparams iniparams1 tmp1 tmp2 tmp3 tmp4
  4. [ShaderRegexDecalsMain.Pattern]
  5. (?P<section1>
  6. \s*mov (?P<pos0>r\d+)\.[xyzw], l\(1\.000000\)\n
  7. )
  8. (?P<section2>
  9. \s*dp4 (?P<pos1>r\d+)\.x, (?P=pos0)\.xyzw, cb(?P<cbuffer_n>\d+)\[(?P<cbx>\d+)\]\.xyzw\n
  10. \s*dp4 (?P=pos1)\.y, (?P=pos0)\.xyzw, cb(?P=cbuffer_n)\[(?P<cby>\d+)\]\.xyzw\n
  11. \s*dp4 (?P=pos1)\.z, (?P=pos0)\.xyzw, cb(?P=cbuffer_n)\[(?P<cbz>\d+)\]\.xyzw\n
  12. \s*dp4 (?P<pos2>r\d+)\.(?P<swizzle_0>[xyzw]), (?P=pos0)\.xyzw, cb(?P=cbuffer_n)\[(?P<cbw>\d+)\]\.xyzw\n
  13. )
  14. (?P<section3>
  15. \s*div (?P<pos3>r\d+)\.xyz, (?P=pos1)\.(?P<swizzle_1>[xyzw]{4}), (?P=pos2)\.(?P=swizzle_0)(?P=swizzle_0)(?P=swizzle_0)(?P=swizzle_0)\n
  16. )
  17. [ShaderRegexDecalsMain.Pattern.Replace]
  18. ${section1}\n
  19. \n
  20. ld_indexable(texture2d)(float,float,float,float) ${stereo}.xyzw, l(0, 0, 0, 0), t125.xyzw\n
  21. dp4 ${tmp1}.w, ${pos2}.${swizzle_0}, ${pos0}.xyzw, cb${cbuffer_n}[${cbw}].xyzw\n
  22. mul ${tmp1}.x, ${tmp1}.w, ${stereo}.y\n
  23. add ${tmp1}.w, ${tmp1}.w, l(-1.0)\n
  24. mul ${tmp1}.w, ${tmp1}.w, ${stereo}.x\n
  25. add ${pos0}.x, ${pos0}.x, ${tmp1}.w\n
  26. ${section2}\n
  27. ${section3}\n
  28. [ShaderRegexDecalsMain.InsertDeclarations]
  29. dcl_resource_texture2d (float,float,float,float) t125
  30. dcl_resource_texture1d (float,float,float,float) t120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement