Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (float x = 0f; x < 1f; x += 1f / bucketDims.x) {
- Debug.DrawLine(
- camera.ViewportToWorldPoint(new Vector3 {
- x = x,
- y = 0f,
- z = worldDepth,
- }),
- camera.ViewportToWorldPoint(new Vector3 {
- x = x,
- y = 1f,
- z = worldDepth,
- }),
- Color.red
- );
- }
- for (float y = 0f; y < 1f; y += 1f / bucketDims.y) {
- Debug.DrawLine(
- camera.ViewportToWorldPoint(new Vector3 {
- x = 0f,
- y = y,
- z = worldDepth,
- }),
- camera.ViewportToWorldPoint(new Vector3 {
- x = 1f,
- y = y,
- z = worldDepth,
- }),
- Color.red
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement