protected void Plane(PlaneGenerator planeGen) { var kernel = compute.FindKernel("Plane"); compute.SetMatrix("_Transform", transform.localToWorldMatrix); compute.SetFloat("_DT", Time.deltaTime); var plane = planeGen.GetPlane(); compute.SetVector("_PlaneNormal", plane.normal); compute.SetFloat("_PlaneDistance", plane.distance); compute.SetFloat("_PlaneWidth", planeGen.Width); KernelGrids(kernel); }