forked from dreamworksanimation/openmoonray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsphere.usd
43 lines (37 loc) · 1.17 KB
/
sphere.usd
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
#usda 1.0
def Camera "shot_cam"
{
matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0.5, 10, 1) )
uniform token[] xformOpOrder = ["xformOp:transform"]
string focalLength = "test"
}
def DistantLight "d_light"
{
matrix4d xformOp:transform = ( (0, 0, 1, 0), (0, 1, 0, 0), (-1, 0, 0, 0), (-10, 0, 0, 1) )
uniform token[] xformOpOrder = ["xformOp:transform"]
float intensity = 1
bool normalize = true
}
def Sphere "sphere"
{
rel material:binding = </checkerboard>
}
def Material "checkerboard"
{
color4f outputs:moonray:surface.connect = <baseMtl.outputs:surface>
def Shader "baseMtl"
{
uniform token info:id = "BaseMaterial"
color4f outputs:surface
color3f inputs:diffuse_color.connect = <../checkerboardMap.outputs:out>
}
def Shader "checkerboardMap"
{
uniform token info:id = "CheckerboardMap"
color3f inputs:color_A = (0,1,0)
color3f inputs:color_B = (0,0,1)
int inputs:num_u_tiles = 24
int inputs:num_v_tiles = 24
color3f outputs:out
}
}