[Chapter 13: Shadows] Shadow Depth Texture Blank

I’m trying to capture the GPU to check the output depth texture, but actually instead of a grayscale image it’s a white image. Is the error from xcode?
My Xcode version 14.3 (14E222b)
MacOS M1 Pro 13.3.1(a)

I can’t tell what the issue is from what you’ve presented here. I’d have to see the code. You may not have enough privileges to be able to upload the code, so I’ll provide a file that you can compare.

I followed the instructions in the chapter up to this point.

Shadows.zip (142.6 KB)

First run this project for macOS and make sure that you are seeing the correct output given by the book. If you still see a white image, then that’s a much harder problem as I see the correct one on my M1 Mac mini.

Second compare your code to this code, as most likely there’s something missing.

If you can’t see any difference and you’re unable to upload your code to this forum, try uploading it to another space such as Google drive or Dropbox, link it, and I’ll take a look.

2 Likes

Hi @caroline
thanks for help
my bad, because I assigned the wrong param

2 Likes

I’m glad you managed to sort it.

1 Like