This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zzz_WorleyNoise3DBlock.go
156 lines (127 loc) · 5.02 KB
/
zzz_WorleyNoise3DBlock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// Code generated by docs2go. DO NOT EDIT.
package babylon
import (
"syscall/js"
)
// WorleyNoise3DBlock represents a babylon.js WorleyNoise3DBlock.
// block used to Generate a Worley Noise 3D Noise Pattern
type WorleyNoise3DBlock struct {
*NodeMaterialBlock
ctx js.Value
}
// JSObject returns the underlying js.Value.
func (w *WorleyNoise3DBlock) JSObject() js.Value { return w.p }
// WorleyNoise3DBlock returns a WorleyNoise3DBlock JavaScript class.
func (ba *Babylon) WorleyNoise3DBlock() *WorleyNoise3DBlock {
p := ba.ctx.Get("WorleyNoise3DBlock")
return WorleyNoise3DBlockFromJSObject(p, ba.ctx)
}
// WorleyNoise3DBlockFromJSObject returns a wrapped WorleyNoise3DBlock JavaScript class.
func WorleyNoise3DBlockFromJSObject(p js.Value, ctx js.Value) *WorleyNoise3DBlock {
return &WorleyNoise3DBlock{NodeMaterialBlock: NodeMaterialBlockFromJSObject(p, ctx), ctx: ctx}
}
// WorleyNoise3DBlockArrayToJSArray returns a JavaScript Array for the wrapped array.
func WorleyNoise3DBlockArrayToJSArray(array []*WorleyNoise3DBlock) []interface{} {
var result []interface{}
for _, v := range array {
result = append(result, v.JSObject())
}
return result
}
// NewWorleyNoise3DBlock returns a new WorleyNoise3DBlock object.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#constructor
func (ba *Babylon) NewWorleyNoise3DBlock(name string) *WorleyNoise3DBlock {
args := make([]interface{}, 0, 1+0)
args = append(args, name)
p := ba.ctx.Get("WorleyNoise3DBlock").New(args...)
return WorleyNoise3DBlockFromJSObject(p, ba.ctx)
}
// GetClassName calls the GetClassName method on the WorleyNoise3DBlock object.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#getclassname
func (w *WorleyNoise3DBlock) GetClassName() string {
retVal := w.p.Call("getClassName")
return retVal.String()
}
// Serialize calls the Serialize method on the WorleyNoise3DBlock object.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#serialize
func (w *WorleyNoise3DBlock) Serialize() js.Value {
retVal := w.p.Call("serialize")
return retVal
}
// _deserialize calls the _deserialize method on the WorleyNoise3DBlock object.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#_deserialize
func (w *WorleyNoise3DBlock) _deserialize(serializationObject JSObject, scene *Scene, rootUrl string) {
args := make([]interface{}, 0, 3+0)
if serializationObject == nil {
args = append(args, js.Null())
} else {
args = append(args, serializationObject.JSObject())
}
if scene == nil {
args = append(args, js.Null())
} else {
args = append(args, scene.JSObject())
}
args = append(args, rootUrl)
w.p.Call("_deserialize", args...)
}
// Jitter returns the Jitter property of class WorleyNoise3DBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#jitter
func (w *WorleyNoise3DBlock) Jitter() *NodeMaterialConnectionPoint {
retVal := w.p.Get("jitter")
return NodeMaterialConnectionPointFromJSObject(retVal, w.ctx)
}
// SetJitter sets the Jitter property of class WorleyNoise3DBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#jitter
func (w *WorleyNoise3DBlock) SetJitter(jitter *NodeMaterialConnectionPoint) *WorleyNoise3DBlock {
w.p.Set("jitter", jitter.JSObject())
return w
}
// ManhattanDistance returns the ManhattanDistance property of class WorleyNoise3DBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#manhattandistance
func (w *WorleyNoise3DBlock) ManhattanDistance() bool {
retVal := w.p.Get("manhattanDistance")
return retVal.Bool()
}
// SetManhattanDistance sets the ManhattanDistance property of class WorleyNoise3DBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#manhattandistance
func (w *WorleyNoise3DBlock) SetManhattanDistance(manhattanDistance bool) *WorleyNoise3DBlock {
w.p.Set("manhattanDistance", manhattanDistance)
return w
}
// Output returns the Output property of class WorleyNoise3DBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#output
func (w *WorleyNoise3DBlock) Output() *NodeMaterialConnectionPoint {
retVal := w.p.Get("output")
return NodeMaterialConnectionPointFromJSObject(retVal, w.ctx)
}
// SetOutput sets the Output property of class WorleyNoise3DBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#output
func (w *WorleyNoise3DBlock) SetOutput(output *NodeMaterialConnectionPoint) *WorleyNoise3DBlock {
w.p.Set("output", output.JSObject())
return w
}
// Seed returns the Seed property of class WorleyNoise3DBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#seed
func (w *WorleyNoise3DBlock) Seed() *NodeMaterialConnectionPoint {
retVal := w.p.Get("seed")
return NodeMaterialConnectionPointFromJSObject(retVal, w.ctx)
}
// SetSeed sets the Seed property of class WorleyNoise3DBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.worleynoise3dblock#seed
func (w *WorleyNoise3DBlock) SetSeed(seed *NodeMaterialConnectionPoint) *WorleyNoise3DBlock {
w.p.Set("seed", seed.JSObject())
return w
}