class_name PlatformData const vertices = [ Vector3(-1, 0, -1), Vector3(1, 0, -1), Vector3(1, 0.2, -1), Vector3(-1, 0.2, -1), Vector3(-1, 0, 1), Vector3(1, 0, 1), Vector3(1, 0.2, 1), Vector3(-1, 0.2, 1) ] const triangles = [ [3, 7, 2, 6], [0, 3, 1, 2], [5, 6, 4, 7], [1, 5, 0, 4], [4, 7, 0, 3], [1, 2, 5, 6] ] const normals = [ Vector3(0, 0, 1), Vector3(0, -1, 0), Vector3(0, 1, 0), Vector3(0, 0, -1), Vector3(-1, 0, 0), Vector3(1, 0, 0) ] const color = [ Color(0.8705, 0.7254, 0.5254), Color(0.9294, 0.3019, 0.4313), Color(0.8588, 0.4235, 0.8666) ] static func defaultMat(): var tempMaterial = StandardMaterial3D.new() tempMaterial.roughness = 1 tempMaterial.specular_mode = BaseMaterial3D.SPECULAR_DISABLED tempMaterial.metallic = 0 tempMaterial.metallic_specular = 0 return tempMaterial static func material1(): var tempMaterial = defaultMat() tempMaterial.albedo_color = color[0] return tempMaterial static func material2(): var tempMaterial = defaultMat() tempMaterial.albedo_color = color[1] return tempMaterial static func material3(): var tempMaterial = defaultMat() tempMaterial.albedo_color = color[2] return tempMaterial