#RenderToCubemap throws strange internal assertion

1 messages · Page 1 of 1 (latest)

deep wraith
#

I'm passing a rendertexture to Camera.RenderToCubemap and according to the documentation, the dimension of the texture must be TextureDimension.Cube. However, I'm getting:

Assertion failed on expression: texture->getDimension() == kTexDim2D

Without seeing the source for RenderToCubemap I have no idea why this assertion could be triggering - according to the docs, the dimension shouldnt be 2D it should be cube. Any ideas why?