def sdf_color(self, p): scale = 0.0 if ti.static(self.taichi_logo): scale = 0.4 if inside_taichi(ti.Vector([p[0], p[2]])): scale = 1 else: scale = 1.0 return ti.Vector([0.3, 0.5, 0.7]) * scale
def sdf_color(p): scale = 0.4 if inside_taichi(ti.Vector([p[0], p[2]])): scale = 1 return ti.Vector([0.3, 0.5, 0.7]) * scale