Skip to content

Commit 892a332

Browse files
committed
fix tangent vector quantity bug
1 parent e91a709 commit 892a332

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/polyscope/vector_quantity.ipp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ void TangentVectorQuantity<QuantityT>::drawVectors() {
279279
template <typename QuantityT>
280280
void TangentVectorQuantity<QuantityT>::createProgram() {
281281
282-
std::vector<std::string> rules = this->quantity.parent.addStructureRules({"SHADE_BASECOLOR"});
282+
std::vector<std::string> rules =
283+
this->quantity.parent.addStructureRules({view::getCurrentProjectionModeRaycastRule(), "SHADE_BASECOLOR"});
283284
if (this->quantity.parent.wantsCullPosition()) {
284285
rules.push_back("VECTOR_CULLPOS_FROM_TAIL");
285286
}

0 commit comments

Comments
 (0)