Changeset 156:d409e5770ab7
- Timestamp:
- 08/17/2008 02:21:40 AM
(4 months ago)
- Author:
- marc@f1.local
- branch:
- default
- Message:
minor bug in TopologySearching?
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r65 |
r156 |
|
| 809 | 809 | |
|---|
| 810 | 810 | public void apply(T root) { |
|---|
| 811 | | parented.put(root, null); |
|---|
| 812 | | |
|---|
| 813 | | List<T> children = t.getChildrenOf(root); |
|---|
| 814 | | currentFringe.clear(); |
|---|
| 815 | | currentFringe.addAll(children); |
|---|
| 816 | | for (T c : currentFringe) { |
|---|
| 817 | | parented.put(c, root); |
|---|
| 818 | | } |
|---|
| 819 | | _apply(root); |
|---|
| | 811 | VisitCode r = visit(root); |
|---|
| | 812 | if (r == VisitCode.cont) { |
|---|
| | 813 | parented.put(root, null); |
|---|
| | 814 | |
|---|
| | 815 | List<T> children = t.getChildrenOf(root); |
|---|
| | 816 | currentFringe.clear(); |
|---|
| | 817 | currentFringe.addAll(children); |
|---|
| | 818 | for (T c : currentFringe) { |
|---|
| | 819 | parented.put(c, root); |
|---|
| | 820 | } |
|---|
| | 821 | _apply(root); |
|---|
| | 822 | } |
|---|
| 820 | 823 | } |
|---|
| 821 | 824 | |
|---|
| r155 |
r156 |
|
| 8 | 8 | |
|---|
| 9 | 9 | gl_FragColor = sample*vertexColor; |
|---|
| 10 | | if (gl_FragColor.w<0.1) |
|---|
| | 10 | if (gl_FragColor.w<0.01) |
|---|
| 11 | 11 | { |
|---|
| 12 | 12 | discard; |
|---|