Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ShaderRegexDecalsMain]
- shader_model = ps_5_0 cs_5_0
- temps = stereo iniparams iniparams1 tmp1 tmp2 tmp3 tmp4
- [ShaderRegexDecalsMain.Pattern]
- (?P<section1>
- \s*mov (?P<pos0>r\d+)\.[xyzw], l\(1\.000000\)\n
- )
- (?P<section2>
- \s*dp4 (?P<pos1>r\d+)\.x, (?P=pos0)\.xyzw, cb(?P<cbuffer_n>\d+)\[(?P<cbx>\d+)\]\.xyzw\n
- \s*dp4 (?P=pos1)\.y, (?P=pos0)\.xyzw, cb(?P=cbuffer_n)\[(?P<cby>\d+)\]\.xyzw\n
- \s*dp4 (?P=pos1)\.z, (?P=pos0)\.xyzw, cb(?P=cbuffer_n)\[(?P<cbz>\d+)\]\.xyzw\n
- \s*dp4 (?P<pos2>r\d+)\.(?P<swizzle_0>[xyzw]), (?P=pos0)\.xyzw, cb(?P=cbuffer_n)\[(?P<cbw>\d+)\]\.xyzw\n
- )
- (?P<section3>
- \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
- )
- [ShaderRegexDecalsMain.Pattern.Replace]
- ${section1}\n
- \n
- ld_indexable(texture2d)(float,float,float,float) ${stereo}.xyzw, l(0, 0, 0, 0), t125.xyzw\n
- dp4 ${tmp1}.w, ${pos2}.${swizzle_0}, ${pos0}.xyzw, cb${cbuffer_n}[${cbw}].xyzw\n
- mul ${tmp1}.x, ${tmp1}.w, ${stereo}.y\n
- add ${tmp1}.w, ${tmp1}.w, l(-1.0)\n
- mul ${tmp1}.w, ${tmp1}.w, ${stereo}.x\n
- add ${pos0}.x, ${pos0}.x, ${tmp1}.w\n
- ${section2}\n
- ${section3}\n
- [ShaderRegexDecalsMain.InsertDeclarations]
- dcl_resource_texture2d (float,float,float,float) t125
- dcl_resource_texture1d (float,float,float,float) t120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement