diff --git a/example.neu b/example.neu index bcca830..26ee756 100644 --- a/example.neu +++ b/example.neu @@ -23,16 +23,12 @@ graph = { &0: object = { name: string = "SM_LargeWindow_A", mesh: mesh = *2, - transform: trans = { - position: vec3 = #8, - rotation: vec3 = #8, - scale: vec3 = #9, - } + transform: trans = #b }, &1: object = { name: string = "SM_LargeWindow_A2", mesh: mesh = *2, - transform: trans = *3 + transform: trans = #b } }, // assets used by the scene @@ -41,11 +37,6 @@ graph = { source: path = "/Assets/Props/LargeWindowA.obj", materials: [mat] = [*4] }, - &3: trans { - position: vec3 = #8, - rotation: vec3 = #8, - scale: vec3 = #9 - }, &4: mat { name: string = "Simple Glass", parent: shader = *7, @@ -80,5 +71,11 @@ cache { // this vector is common as a scale value &9: vec3 = (1.0, 1.0, 1.0), // this vector is common as a normal value - &a: vec4 = (0.5, 0.5, 1.0, 1.0) + &a: vec4 = (0.5, 0.5, 1.0, 1.0), + // this transform is common because it's the default + &b: trans = { + position: vec3 = #8, + rotation: vec3 = #8, + scale: vec3 = #9 + } } \ No newline at end of file