Skip to content

Commit

Permalink
Merge pull request #103 from ferrolho/master
Browse files Browse the repository at this point in the history
Adds `linewidth` param to GenericMaterial.
  • Loading branch information
rdeits authored May 13, 2019
2 parents 39a0e0d + f6e862d commit f40c4aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lowering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ function lower(material::GenericMaterial)
"depthFunc" => material.depthFunc,
"depthTest" => material.depthTest,
"depthWrite" => material.depthWrite,
"linewidth" => material.linewidth,
"side" => material.side,
"vertexColors" => material.vertexColors,
)
Expand Down
1 change: 1 addition & 0 deletions src/objects.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ end
depthFunc::Int = 3
depthTest::Bool = true
depthWrite::Bool = true
linewidth::Float64 = 1.
vertexColors::Int = 0 # TODO: make an enum
side::Int = 2 # TODO: make an enum https://github.com/mrdoob/three.js/blob/d55897b8e9b2632896d8ac146a05b3b4be3668f8/src/constants.js#L14
end
Expand Down

0 comments on commit f40c4aa

Please sign in to comment.