Skip to content

Commit

Permalink
Further primvar cleanup.
Browse files Browse the repository at this point in the history
Changed displayColor to be constant-interpolated, removed some unused primvars, and authored extents/extentsHint attributes in a few places that were missing it.
  • Loading branch information
crydalch committed Feb 24, 2024
1 parent 07e13a3 commit 9e4ac2c
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 93 deletions.
26 changes: 4 additions & 22 deletions full_assets/StandardShaderBall/layers/environment.usda
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,18 @@ def Xform "standard_shader_ball_scene" (
float3[] extent = [(0, -10.311456, -10.311456), (0, 10.311456, 10.311456)]
int[] faceVertexCounts = [3, 3]
int[] faceVertexIndices = [0, 3, 1, 3, 0, 2]
float[] height = [0, 0, 0, 0] (
interpolation = "vertex"
)
float[] intensity = [0, 0, 0, 0] (
interpolation = "vertex"
)
normal3f[] normals = [(1, 0, 0), (1, 0, 0), (1, 0, 0), (1, 0, 0)] (
interpolation = "vertex"
)
uniform token orientation = "rightHanded"
point3f[] points = [(0, -10.311456, -10.311456), (0, -10.311456, 10.311456), (0, 10.311456, -10.311456), (0, 10.311456, 10.311456)] (
interpolation = "vertex"
)
color3f[] primvars:displayColor = [(0.502, 0.502, 0.502), (0.502, 0.502, 0.502)] (
interpolation = "uniform"
color3f[] primvars:displayColor = [(0.502, 0.502, 0.502)] (
interpolation = "constant"
)
int[] primvars:displayColor:indices = None
uniform token subdivisionScheme = "none"
float[] width = [0, 0, 0, 0] (
interpolation = "vertex"
)
}
}

Expand Down Expand Up @@ -154,27 +145,18 @@ def Xform "standard_shader_ball_scene" (
float3[] extent = [(-31.54725, 0, -31.6542), (31.54725, 0, 31.6542)]
int[] faceVertexCounts = [3, 3]
int[] faceVertexIndices = [0, 3, 1, 3, 0, 2]
float[] height = [0, 0, 0, 0] (
interpolation = "vertex"
)
float[] intensity = [0, 0, 0, 0] (
interpolation = "vertex"
)
normal3f[] normals = [(0, 1, 0), (0, 1, 0), (0, 1, 0), (0, 1, 0)] (
interpolation = "vertex"
)
uniform token orientation = "rightHanded"
point3f[] points = [(-31.54725, 0, -31.6542), (31.54725, 0, -31.6542), (-31.54725, 0, 31.6542), (31.54725, 0, 31.6542)] (
interpolation = "vertex"
)
color3f[] primvars:displayColor = [(0.502, 0.502, 0.502), (0.502, 0.502, 0.502)] (
interpolation = "uniform"
color3f[] primvars:displayColor = [(0.502, 0.502, 0.502)] (
interpolation = "constant"
)
int[] primvars:displayColor:indices = None
uniform token subdivisionScheme = "none"
float[] width = [0, 0, 0, 0] (
interpolation = "vertex"
)
}
}
}
Expand Down
117 changes: 48 additions & 69 deletions full_assets/StandardShaderBall/layers/shaderball.usda

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified full_assets/StandardShaderBall/src/setup.hip
Binary file not shown.

0 comments on commit 9e4ac2c

Please sign in to comment.