Skip to main content
Rollback to Revision 7
Link
Vaillancourt
  • 16.4k
  • 17
  • 56
  • 61

problem showing cubemap shadows for point lights in texturecube mode (solved)

edited title
Link
philB
  • 333
  • 2
  • 11

problem showing cubemap shadows for point lights in texturecube mode (solved)

added 106 characters in body
Source Link
philB
  • 333
  • 2
  • 11

I'm adding cubemap shadow for point lights. Rendering each face in a separate texture2D seems to work (see picture, right, rendering from yellow point light view). With the same pipeline I can't get it working for cubemap or I'm not able to see it correctly in my visualisation panel. I'm using the almost same code as in the GSCubemap demo for DX10 except I want to render only in the depth buffer so I don't set pixelshader. Note : my cubemap is D24S8 and current shadow is from another directional light, there's no shadows from point lights at the moment.

I'm adding cubemap shadow for point lights. Rendering each face in a separate texture2D seems to work (see picture, right, rendering from yellow point light view). With the same pipeline I can't get it working for cubemap or I'm not able to see it correctly in my visualisation panel. I'm using the almost same code as in the GSCubemap demo for DX10 except I want to render only in the depth buffer so I don't set pixelshader. Note : my cubemap is D24S8.

I'm adding cubemap shadow for point lights. Rendering each face in a separate texture2D seems to work (see picture, right, rendering from yellow point light view). With the same pipeline I can't get it working for cubemap or I'm not able to see it correctly in my visualisation panel. I'm using the almost same code as in the GSCubemap demo for DX10 except I want to render only in the depth buffer so I don't set pixelshader. Note : my cubemap is D24S8 and current shadow is from another directional light, there's no shadows from point lights at the moment.

added 1083 characters in body
Source Link
philB
  • 333
  • 2
  • 11
Loading
added 1229 characters in body; edited title
Source Link
philB
  • 333
  • 2
  • 11
Loading
added 1229 characters in body; edited title
Source Link
philB
  • 333
  • 2
  • 11
Loading
edited title
Source Link
Kromster
  • 10.7k
  • 4
  • 55
  • 67
Loading
added 67 characters in body
Source Link
philB
  • 333
  • 2
  • 11
Loading
Source Link
philB
  • 333
  • 2
  • 11
Loading