public void SetBrushType(bool cpu, BrushTypes.Base t) { if (cpu) { _inCpuBrushType = t.index; } else { _inGpuBrushType = t.index; } }
public override void BeforeGpuStroke(PlaytimePainter painter, BrushConfig br, StrokeVector st, BrushTypes.Base type) { if (!br.IsA3DBrush(painter) || !painter.IsAtlased()) { return; } var ats = GetAtlasedSection(); PainterDataAndConfig.BRUSH_ATLAS_SECTION_AND_ROWS.GlobalValue = new Vector4(ats.x, ats.y, atlasRows, 1); }
public override void AfterGpuStroke(PlaytimePainter painter, BrushConfig br, StrokeVector st, BrushTypes.Base type) { if (br.IsA3DBrush(painter) && painter.IsAtlased()) { PainterDataAndConfig.BRUSH_ATLAS_SECTION_AND_ROWS.GlobalValue = new Vector4(0, 0, 1, 0); } }
public virtual void AfterGpuStroke(PlaytimePainter painter, BrushConfig br, StrokeVector st, BrushTypes.Base type) { }