暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VFXLit.template 815B

12345678910111213141516171819202122
  1. #include "Packages/com.unity.render-pipelines.universal/Runtime/VFXGraph/Shaders/VFXLit.hlsl"
  2. #ifndef VFX_SHADERGRAPH
  3. #if VFX_MATERIAL_TYPE_SIX_WAY_SMOKE
  4. #define SurfaceData SixWaySurfaceData
  5. #endif
  6. void VFXGetURPLitData(out SurfaceData surfaceData, out InputData inputData, VFX_VARYING_PS_INPUTS i, float3 normalWS, const VFXUVData uvData, bool frontFace, uint2 tileIndex)
  7. {
  8. float3 posRWS = VFXGetPositionRWS(i);
  9. float4 posSS = i.VFX_VARYING_POSCS;
  10. PositionInputs posInput = GetPositionInput(posSS.xy, _ScreenSize.zw, posSS.z, posSS.w, posRWS, tileIndex);
  11. surfaceData = VFXGetSurfaceData(i, normalWS, uvData);
  12. inputData = VFXGetInputData(i, posInput, normalWS, frontFace);
  13. }
  14. #endif
  15. #include "Packages/com.unity.render-pipelines.universal/Runtime/VFXGraph/Shaders/VFXLitPixelOutput.hlsl"