Luce packages
LuceLuce BaseLuciaOS

dymokomi/luced-3d

Source of release 0.11.4

0.11.4 / examples / splats / squash.prisma

#prisma 4.0
def luced3d "scene" {
    int display = 7
    int next_id = 8
    bool preview = false
    int scope = -1
    int selected = 7
    int take = 0
    float64[4] time = [1, 1, 240, 24]
    str units = "mm"
    int version = 1
    def network "nodes" {
        def Sphere "n2" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 2
            float64[0] inputs = []
            str name = "Sphere 2"
            int output = -1
            float64[32] parameters = [1, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 0]
            float64[0] sources = []
            str[3] texts = ["", "weight", "renamed"]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
        def Code "n3" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 3
            float64[2] inputs = [2, -1]
            str name = "Code 3"
            int output = -1
            float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 90]
            float64[2] sources = [0, 0]
            str[5] texts = ["", "# A fuzzy ball, warm at the bottom and cool on top.\nlet n = snoise(p.P * 3.0)\np.P = p.P * (1.0 + n * 0.08)\nlet t = fit(p.P[1], -1.0, 1.0, 0.0, 1.0)\np.Cd = [lerp(0.9, 0.2, t), lerp(0.4, 0.6, t), lerp(0.2, 0.9, t), 0.0]\np.set_f32(\"pscale\", 0.035)\n", "", "", ""]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
        def "Bake GSplats" "n4" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 4
            float64[1] inputs = [3]
            str name = "Bake GSplats 4"
            int output = -1
            float64[32] parameters = [1, 0, 3, 0.84999999999999998, 0.050000000000000003, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 180]
            float64[1] sources = [0]
            str[3] texts = ["", "weight", "renamed"]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
        def "GSplats SH Degree" "n5" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 5
            float64[1] inputs = [4]
            str name = "GSplats SH Degree 5"
            int output = -1
            float64[32] parameters = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 270]
            float64[1] sources = [0]
            str[3] texts = ["", "weight", "renamed"]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
        def Code "n6" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 6
            float64[2] inputs = [5, -1]
            str name = "Code 6"
            int output = -1
            float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.34999999403953552, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 360]
            float64[2] sources = [0, 0]
            str[5] texts = ["", "# A sheen in the first band: brighter where the surface faces the viewer.\nlet n = normalized(p.P)\nlet w = -k.f32(\"sheen\", 0.35)\np.set_sh(0, [-n[1] * w, -n[1] * w, -n[1] * w, 0.0])\np.set_sh(1, [n[2] * w, n[2] * w, n[2] * w, 0.0])\np.set_sh(2, [-n[0] * w, -n[0] * w, -n[0] * w, 0.0])\n", "", "sheen\t16\t1\t0", ""]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
        def Code "n7" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 7
            float64[2] inputs = [6, -1]
            str name = "Code 7"
            int output = 1
            float64[64] parameters = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.20000000298023224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 450]
            float64[2] sources = [0, 0]
            str[5] texts = ["", "# Scale each splat's covariance along world Y.\nlet m = Mat3.scaling([1.0, k.f32(\"squash\", 0.2), 1.0, 0.0])\ngsplat.set_covariance(p, m.multiply(gsplat.covariance(p)).multiply(m))\n", "", "squash\t16\t1\t0", ""]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
    }
    def takes "takes" {
        def take "t0" {
            str[6] cameras = ["", "", "", "", "", ""]
            float64[6] counts = [0, 0, 0, 0, 0, 0]
            float64[6] enabled = [1, 1, 1, 1, 1, 1]
            str[6] hidden = ["", "", "", "", "", ""]
            float64[6] ids = [2, 3, 4, 5, 6, 7]
            str name = "Main"
            float64[0] transforms = []
            float64[6] visible = [1, 1, 1, 1, 1, 1]
        }
    }
    def editor_view "view" {
        float64[6] camera = [0.69999999999999996, 0.55000000000000004, 6.3245259978127599, 0.008169710636138916, 1.0192704200744629, 0.0051231980323791504]
        float64[3] network = [1, 0, 0]
    }
}