Looking at Texture2D it looks like the Texture2D.blackTexture documentation may have a typo. The values I'm getting out of the texture when I put it into a shader is 0,0,0,0 not 0,0,0,1. This is similar to the default texture on shader parameters where the "black" texture is 0,0,0,0.

Can we confirm that this is indeed a typo?


Well... the docs are indeed wrong here, however it probably wasn't a typo. It could be argued that it would make more sense for the function to return 0,0,0,1 because that's opaque black, as opposed to "transparent black" which is a bit odd! I expect that the whoever wrote that page assumed the function did the sensible thing without actually checking!

However, the property does indeed return 0,0,0,0 so I will update the docs accordingly.

We can't change the API to return 0,0,0,1 because there are likely projects out in the wild now which rely on this value. :eyes:

This page has now been updated online!