You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the same lineWidth in materialInstance for render object in the screenshot below.But the result seems different(the lines on the left range seems has larger lineWidth than the lines on the right).
This is the mat file where I used the lineWidth in materialInstance:
and the side is used to tell whether to add or subtract the value
When I increase this variable lineWidth(nothing changed except the value of lineWidth), the result rendered still doesn't look correnct, but compared to the previous image, their lineWidth seems to have increased proportionally campare with the previous screenshot above. Can someone help me understand the reason for this phenomenon and what the underlying principles are? Thanks so much!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I used the same lineWidth in materialInstance for render object in the screenshot below.But the result seems different(the lines on the left range seems has larger lineWidth than the lines on the right).
This is the mat file where I used the lineWidth in materialInstance:
normal.xy *= 0.5 * materialParams.lineWidth;
position.xy += normal.xy * side;
material.worldPosition = float4(position, 1);
and the side is used to tell whether to add or subtract the value
When I increase this variable lineWidth(nothing changed except the value of lineWidth), the result rendered still doesn't look correnct, but compared to the previous image, their lineWidth seems to have increased proportionally campare with the previous screenshot above. Can someone help me understand the reason for this phenomenon and what the underlying principles are? Thanks so much!
Beta Was this translation helpful? Give feedback.
All reactions