Fix ribbon particles triangle indices ordering to prevent artifacts
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
/// <summary>
|
||||
/// Current materials shader version.
|
||||
/// </summary>
|
||||
#define MATERIAL_GRAPH_VERSION 160
|
||||
#define MATERIAL_GRAPH_VERSION 161
|
||||
|
||||
class Material;
|
||||
class GPUShader;
|
||||
|
||||
@@ -154,9 +154,6 @@ void ParticleMaterialShader::Bind(BindParameters& params)
|
||||
materialData->RibbonUVOffset.Y = drawCall.Particle.Ribbon.UVOffsetY;
|
||||
materialData->RibbonSegmentCount = drawCall.Particle.Ribbon.SegmentCount;
|
||||
|
||||
if (drawCall.Particle.Ribbon.SegmentDistances)
|
||||
context->BindSR(1, drawCall.Particle.Ribbon.SegmentDistances->View());
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user