mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
cleanup slicing geometry shader
This commit is contained in:
@@ -31,13 +31,6 @@ void emit(vec4 v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
// vec4 pos4[4];
|
|
||||||
// for (int i = 0; i < 4; ++i) pos4[i] = view * verts[vInds[0][i]];
|
|
||||||
//
|
|
||||||
// for (int i = 0; i < 4; ++i) emit(pos4[i]);
|
|
||||||
// EndPrimitive();
|
|
||||||
// return;
|
|
||||||
|
|
||||||
vec4 pos4[4];
|
vec4 pos4[4];
|
||||||
for (int i = 0; i < 4; ++i) pos4[i] = view * verts[vInds[0][i]];
|
for (int i = 0; i < 4; ++i) pos4[i] = view * verts[vInds[0][i]];
|
||||||
|
|
||||||
@@ -62,7 +55,6 @@ void main() {
|
|||||||
|
|
||||||
float t = unmix(a.w+x, b.w+x);
|
float t = unmix(a.w+x, b.w+x);
|
||||||
sect[S++] = mix(a, b, t);
|
sect[S++] = mix(a, b, t);
|
||||||
// sect[S++] = (0.0 - a.w) / (b.w - a.w) * (b - a) + a;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int s = 0; s < S; ++s) {
|
for (int s = 0; s < S; ++s) {
|
||||||
|
|||||||
Reference in New Issue
Block a user