Jump to content

engine.visualizer.renderFrustum


photo

Recommended Posts

Hello,

I've been trying to use the renderFrustum function like so;

 

engine.visualizer.renderFrustum(projLight.getTransform(), projLight.getProjection(), vec4(1,0.5f,0,1));

 

This does not create a desired frustum shape of a projection light. I tried manually creating the perspcetive matrix and also tried creating a view matrix for the transform parameter but to no avail. Is this function bugged or are the docs misleading me again? Also I cannot not find where the proj lights bounding frustum shape is drawn in the core editor code so I havn't been able to replicate how the editor has done it.

Link to comment
  • 2 weeks later...
×
×
  • Create New...