SHARE
TWEET

Untitled

a guest Jul 10th, 2019 169 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Shader hash 1be87932-1bb0e34f-1d7a50ff-7b5007d5
  2.  
  3. ps_5_0
  4.       dcl_globalFlags refactoringAllowed
  5.       dcl_constantbuffer cb0[4], immediateIndexed
  6.       dcl_constantbuffer cb2[21], immediateIndexed
  7.       dcl_constantbuffer cb1[5], immediateIndexed
  8.       dcl_sampler sampler0 (s0), mode_default
  9.       dcl_resource_texture2d (float,float,float,float) texture_Diffuse (t1)
  10.       dcl_resource_texture2d (float,float,float,float) texture_Specular (t2)
  11.       dcl_resource_texture2d (float,float,float,float) texture_Texture3 (t3)
  12.       dcl_input_ps linear v1.xyz
  13.       dcl_input_ps linear v2.xyz
  14.       dcl_input_ps linear v3.xyz
  15.       dcl_input_ps linear v4.xyz
  16.       dcl_input_ps linear v5.xy
  17.       dcl_output o0.xyzw
  18.       dcl_output o1.xyzw
  19.       dcl_output o2.xyzw
  20.       dcl_output o3.xyzw
  21.       dcl_temps 3
  22.    0: mul r0.xy, v5.xyxx, external_NormalTiling.xyxx
  23.    1: sample_indexable(texture2d)(float,float,float,float) r0.xyz, r0.xyxx, texture_Texture3.xywz, sampler0
  24.    2: mul r0.x, r0.z, r0.x
  25.    3: mad r0.xy, r0.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
  26.    4: dp2 r0.w, r0.xyxx, r0.xyxx
  27.    5: add r0.w, -r0.w, l(1.000000)
  28.    6: max r0.w, r0.w, l(0)
  29.    7: sqrt r0.z, r0.w
  30.    8: dp3 r1.x, r0.xyzx, v2.xyzx
  31.    9: dp3 r1.y, r0.xyzx, v3.xyzx
  32.   10: dp3 r1.z, r0.xyzx, v4.xyzx
  33.   11: dp3 r0.x, r1.xyzx, r1.xyzx
  34.   12: rsq r0.x, r0.x
  35.   13: mul r0.xyz, r0.xxxx, r1.xyzx
  36.   14: mad o0.xyz, r0.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), l(0.500000, 0.500000, 0.500000, 0.000000)
  37.   15: add r1.x, -external_SmoothnessRegular.x, external_SmoothnessMasked.x
  38.   16: sample_indexable(texture2d)(float,float,float,float) r1.yz, v5.xyxx, texture_Specular.xyzw, sampler0
  39.   17: mad o0.w, r1.z, r1.x, external_SmoothnessRegular.x
  40.   18: add r1.xzw, -v1.xxyz, cameraPos.xxyz
  41.   19: dp3 r2.x, r1.xzwx, r1.xzwx
  42.   20: rsq r2.x, r2.x
  43.   21: mul r1.xzw, r1.xxzw, r2.xxxx
  44.   22: dp3 r1.x, r0.xyzx, r1.xzwx
  45.   23: add r1.x, -r1.x, l(1.001000)
  46.   24: mul r1.z, r1.x, r1.x
  47.   25: mul_sat r1.x, r1.z, r1.x
  48.   26: mad r1.x, r1.x, l(4.500000), l(0.500000)
  49.   27: mad r1.x, r1.y, r1.x, external_PickupSpec.x
  50.   28: sqrt o1.w, r1.x
  51.   29: sample_indexable(texture2d)(float,float,float,float) r1.xyz, v5.xyxx, texture_Diffuse.xyzw, sampler0
  52.   30: mul r1.xyz, r1.xyzx, external_DiffuseDarkening.xyzx
  53.   31: sqrt o1.xyz, r1.xyzx
  54.   32: mov r0.w, l(1.000000)
  55.   33: dp4 o2.x, r0.xyzw, lightProbeShO.xyzw
  56.   34: mov o2.yzw, l(0.000000, 0.000000, 0.011765, 0.000000)
  57.   35: dp4 r1.x, r0.xyzw, lightProbeShR.xyzw
  58.   36: dp4 r1.y, r0.xyzw, lightProbeShG.xyzw
  59.   37: dp4 r1.z, r0.xyzw, lightProbeShB.xyzw
  60.   38: max r0.xyz, r1.xyzx, l(0, 0, 0, 0)
  61.   39: mul r0.xyz, r0.xyzx, l(0.125000, 0.125000, 0.125000, 0.000000)
  62.   40: max r0.w, r0.y, r0.x
  63.   41: max r1.x, r0.z, l(0.000001)
  64.   42: max r0.w, r0.w, r1.x
  65.   43: min r0.w, r0.w, l(1.000000)
  66.   44: mul r0.w, r0.w, l(255.000000)
  67.   45: round_pi r0.w, r0.w
  68.   46: mul r0.w, r0.w, l(0.003922)
  69.   47: div o3.xyz, r0.xyzx, r0.wwww
  70.   48: mov o3.w, r0.w
  71.   49: ret
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top