-
Notifications
You must be signed in to change notification settings - Fork 1
/
materials_mesh_physical_material.go
31 lines (27 loc) · 1.23 KB
/
materials_mesh_physical_material.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
package three
//go:generate go run codegen/material_method_generator/main.go -typeName MeshPhysicalMaterial -typeSlug mesh_physical_material
import "syscall/js"
type MeshPhysicalMaterial struct {
// Clearcoat float64 `js:"clearcoat"`
// ClearcoatMap *Texture `js:"clearcoatMap"`
// ClearcoatNormalMap *Texture `js:"clearcoatNormalMap"`
// ClearcoatNormalScale Vector2 `js:"clearcoatNormalScale"`
// ClearcoatRoughness float64 `js:"clearcoatRoughness"`
// ClearcoatRoughnessMap *Texture `js:"clearcoatRoughnessMap"`
// IOR float64 `js:"ior"` // Index of refraction
// Reflectivity float64 `js:"reflectivity"`
// Sheen float64 `js:"sheen"`
// SheenRoughness float64 `js:"sheenRoughness"`
// SheenRoughnessMap *Texture `js:"sheenRoughnessMap"`
// SheenColor *Color `js:"sheenColor"`
// SheenColorMap *Texture `js:"sheenColorMap"`
// Transmission float64 `js:"transmission"`
// TransmissionMap *Texture `js:"transmissionMap"`
js.Value
}
func NewMeshPhysicalMaterial(params *MaterialParameters) MeshBasicMaterial {
v := objectify(params)
return MeshBasicMaterial{
Value: three.Get("MeshBasicMaterial").New(v),
}
}