Skip to content

Commit 6cbe0d4

Browse files
committed
.\chapter25.md
1 parent 4ffdce1 commit 6cbe0d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

chapter25/chapter25.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Once the basis of frustum culling has been explained, we can get advatange of mo
154154

155155
So, let's change the `FrustumCullingFilter` class. The attributes and constructor are simplified like this:
156156

157-
```
157+
```java
158158
public class FrustumCullingFilter {
159159

160160
private final Matrix4f prjViewMatrix;
@@ -169,20 +169,19 @@ public class FrustumCullingFilter {
169169

170170
The updateFrustum method just delegates the plane extraction to the `FrustumIntersection`instance.
171171

172-
```
172+
```java
173173
public void updateFrustum(Matrix4f projMatrix, Matrix4f viewMatrix) {
174174
// Calculate projection view matrix
175175
prjViewMatrix.set(projMatrix);
176176
prjViewMatrix.mul(viewMatrix);
177177
// Update frustum intersection class
178178
frustumInt.set(prjViewMatrix);
179179
}
180-
181180
```
182181

183182
And the method that `insideFrustum `method is vene more simple:
184183

185-
```
184+
```java
186185
public boolean insideFrustum(float x0, float y0, float z0, float boundingRadius) {
187186
return frustumInt.testSphere(x0, y0, z0, boundingRadius);
188187
}

0 commit comments

Comments
 (0)