public LineRenderer1(Node parent, Camera camera, int cornerSmooth, int jointSmooth, Shader shader) { material = new ShaderMaterial(); material.SetShader(shader != null ? shader : ResourceLoader.Load("res://src/Common/Utils/Shaders/default.shader") as Shader); geometry = new ImmediateGeometry(); geometry.SetCastShadowsSetting(GeometryInstance.ShadowCastingSetting.DoubleSided); geometry.SetMaterialOverride(material); parent.AddChild(geometry); this.camera = camera; this.cornerSmooth = (cornerSmooth / 2); this.jointSmooth = jointSmooth; Last = new Vector3[2]; Up = new Vector3[4]; Low = new Vector3[4]; Variables = new Vector3[6]; Crossed = new bool[2]; Score = new float[2]; Segments = new Vector3[2]; startThickness = endThickness = 0.1f; }