protected override void ClientSetupRenderer(IComponentSpriteRenderer renderer) { base.ClientSetupRenderer(renderer); ClientGrassRenderingHelper.Setup(renderer, power: 0.1f, pivotY: 0.5f); }
protected override void ClientSetupRenderer(IComponentSpriteRenderer renderer) { base.ClientSetupRenderer(renderer); renderer.DrawOrderOffsetY = 0.33; ClientGrassRenderingHelper.Setup(renderer, power: 0.1f, pivotY: 0.3f); }
protected override void ClientRefreshVegetationRendering( IStaticWorldObject worldObject, VegetationClientState clientState, VegetationPublicState publicState) { base.ClientRefreshVegetationRendering(worldObject, clientState, publicState); if (publicState.GrowthStage > 2 && publicState.GrowthStage < this.GrowthStagesCount) { ClientGrassRenderingHelper.Setup(clientState.Renderer, power: 0.1f, pivotY: 0.2f); } else { // no grass swaying for the just planted and spoiled plant clientState.Renderer.RenderingMaterial = null; } }