实线画出来了。
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
layout(location = 0) in vec3 fragColor;
|
||||
layout(location = 1) in vec3 fragSegmentStart;
|
||||
layout(location = 2) in vec3 fragSegmentEnd;
|
||||
layout(location = 3) in vec3 fragWorldPos;
|
||||
//layout(location = 3) in vec3 fragWorldPos;
|
||||
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
@@ -56,9 +56,12 @@ void main() {
|
||||
currentPos);
|
||||
|
||||
// 如果alpha接近0,直接丢弃片元
|
||||
if (alpha < 0.01) {
|
||||
discard;
|
||||
}
|
||||
|
||||
outColor = vec4(fragColor, alpha);
|
||||
// if (alpha < 0.01) {
|
||||
// discard;
|
||||
// }
|
||||
|
||||
// outColor = vec4(fragColor, alpha);
|
||||
|
||||
outColor = vec4(1, 0, 0, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user