carl.sutton Posted February 15, 2012 Share 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. Link to comment
frustum Posted February 15, 2012 Share Posted February 15, 2012 The first argument is projection. The second one is transformation. Link to comment
carl.sutton Posted February 15, 2012 Author Share Posted February 15, 2012 The docs have it reversed in case you were unaware Link to comment
manguste Posted February 24, 2012 Share Posted February 24, 2012 Oh, it is indeed. Fixed, thank you. Link to comment
Recommended Posts