Skip to content

Impact points

Modify the constant value of the Damage FX Script Component:

Assets/FORGE3D/DamageFX/Scripts/DamageFX.cs

DamageFX script declaring TotalPoints as 200.

Open the DamageFXDistMask function from the Assets/FORGE3D/DamageFX/Shaders/ and change the number of MaxPoints constant matching the number set in the script component. Recompile both Damage FX Functions and all shaders affected by this change.

DamageFXDistMask shader graph with the MaxPoints constant set to 200.

Open the Damage FX Shader sample and search for the existing number of points in the search field of your favorite editor:

Shader code accessing the Points array with a clamp limit of 200 minus 1.

Shader code setting the MaxPoints variable to 200.

Shader code declaring Points and Data arrays with 200 elements each.