carl.sutton Posted February 15, 2012 Posted February 15, 2012 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.
frustum Posted February 15, 2012 Posted February 15, 2012 The first argument is projection. The second one is transformation.
carl.sutton Posted February 15, 2012 Author Posted February 15, 2012 The docs have it reversed in case you were unaware
Recommended Posts