Luce packages
LuceLuce BaseLuciaOS

dymokomi/luced-3d

Source of release 0.11.4

0.11.4 / examples / wrangles / fire.prisma

#prisma 4.0
def luced3d "scene" {
    int display = 4
    int next_id = 5
    bool preview = false
    int scope = -1
    int selected = 4
    int take = 0
    float64[4] time = [1, 1, 240, 24]
    str units = "mm"
    int version = 1
    def network "nodes" {
        def Volume "n2" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 2
            float64[1] inputs = [-1]
            str name = "Volume 2"
            int output = -1
            float64[32] parameters = [0, 0, 1.2, 0, 2, 3, 2, 0.025000000000000001, 0, 0, 1, 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[1] sources = [0]
            str[3] texts = ["", "", ""]
            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 = [5, 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 flame: a column narrowing as it rises, torn by noise drifting up.\nlet height = clamp(x.P[1] / 2.4, 0.0, 1.0)\nlet radius = length(x.P * [1.0, 0.0, 1.0, 0.0])\nlet n = fbm(x.P * 2.2 - [0.0, (f32)k.time * 1.5, 0.0, 0.0])\nlet flame = clamp((0.55 * (1.0 - height) - radius) * 4.0 + n * 1.2, 0.0, 1.0)\nx.value = flame * (0.3 + height * 0.7)\nx.set_f32(\"heat\", flame * (1.0 - height) * (1.0 - height))\n", "## Noise octaves: each twice as fine and half as strong.\nfunc fbm(at: f32[4]) -> f32:\n    var sum: f32 = 0.0\n    var scale: f32 = 1.0\n    var weight: f32 = 0.5\n    for i in 0..<5:\n        sum += snoise(at * scale) * weight\n        scale *= 2.0\n        weight *= 0.5\n    return sum\n", "", ""]
            bool time_dependent = true
            bool visible = true
            def recipes "edits" {
            }
        }
        def "Volume Visualization" "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 = "Volume Visualization 4"
            int output = 1
            float64[32] parameters = [3, 0.25, 0.25, 0.25, 1, 4, 1, 1, 1, 1, 0, 1.3999999999999999, 1, 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[5] texts = ["", "", "heat", "1.0,3.0,4.0,0.0,0.2,0.01,0.0,1.0,0.35,1.0,0.18,0.01,1.0,0.7,1.0,0.55,0.08,1.0,1.0,1.0,0.85,0.4,1.0", ""]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
    }
    def takes "takes" {
        def take "t0" {
            str[3] cameras = ["", "", ""]
            float64[3] counts = [0, 0, 0]
            float64[3] enabled = [1, 1, 1]
            str[3] hidden = ["", "", ""]
            float64[3] ids = [2, 3, 4]
            str name = "Main"
            float64[0] transforms = []
            float64[3] visible = [1, 1, 1]
        }
    }
    def editor_view "view" {
        float64[6] camera = [0.69999999999999996, 0.55000000000000004, 8.1870324293971137, 0.087499999999999911, 1.1875, 0.087499999999999911]
        float64[3] network = [1, 0, 0]
    }
}