Game Development Community

MeshRenderInst lighting question

by Gerald Fishel · in Torque Game Engine Advanced · 01/07/2009 (11:16 am) · 0 replies

Hi all,

I'm working on some custom renderables, and I just had a quick question about the lighting model with the built-in procedural materials.

Do the standard materials only work with directional lights, or is there a way to get them to work with other types of lights? I tried setting MeshRenderInst::light to a point light but it seems to treat it as a directional light anyway.

Thanks,
Gerald