File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ protected override IEnumerable<VFXPropertyWithValue> inputProperties
1717 {
1818 foreach ( var inputProperty in base . inputProperties )
1919 yield return inputProperty ;
20+
21+ //This yield return will automatically add a slot in this output.
2022 yield return new VFXPropertyWithValue ( new VFXProperty ( typeof ( float ) , "customDeformation" ) ) ;
2123 }
2224 }
@@ -30,6 +32,7 @@ protected override IEnumerable<VFXNamedExpression> CollectGPUExpressions(IEnumer
3032 {
3133 if ( slot . name == "customDeformation" )
3234 {
35+ //It makes this value readable on GPU thanks to "${VFXLoadParameter:{customDeformation}}" in template.
3336 yield return slot ;
3437 break ;
3538 }
Original file line number Diff line number Diff line change 11{
22 SubShader
33 {
4+ //N.B: This Assets include is only considered thanks to a hack in VFXCodeGenerator.cs(L314)
45 ${VFXInclude("Assets/Editor/VFXCustomParticleHeader.template")}
56 ${VFXIncludeRP("Templates/ParticleMeshesLit/PassSelection.template")}
67 ${VFXIncludeRP("Templates/ParticleMeshesLit/PassDepth.template"),IS_OPAQUE_PARTICLE}
You can’t perform that action at this time.
0 commit comments