Skip to content

Commit

Permalink
Merge pull request #1442 from zenustech/fix_fbm
Browse files Browse the repository at this point in the history
fix_fbm
  • Loading branch information
zhouhang95 authored Sep 25, 2023
2 parents 9d2a8bb + 35b7da0 commit 1444d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zeno/src/nodes/prim/WBErode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@ struct HF_maskByFeature : INode {
// //!useCurvature &&
// //!useOcclusion)
{
mask[idx] = 0;
// mask[idx] = 0;
}

if (useSlope) {
Expand Down
3 changes: 2 additions & 1 deletion zeno/src/nodes/prim/WBNoise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,8 @@ glm::vec3 noise_random3(glm::vec3 p) {

float noise_mydistance(glm::vec3 a, glm::vec3 b, int t) {
if (t == 0) {
return length(a - b);
float d = length(a - b);
return d*d;
}
else if (t == 1) {
float xx = abs(a.x - b.x);
Expand Down

0 comments on commit 1444d0b

Please sign in to comment.