Specularity lighting in irrlicht?

BlitzMax Forums/BlitzMax Programming/Specularity lighting in irrlicht?

ckob(Posted 2005) [#1]
This is aimed more at Gman or whom ever can answer this but is there a way to do specularity lighting in bmax irrlicht? Thanks in advance


gman(Posted 2005) [#2]
currently specular lighting is only available in the DX Irrlicht drivers. edit the shininess (specular size) property on the material of a node and enable lighting for the node.
mynode.setMaterialFlag(EMF_LIGHTING, True) '  enable dynamic lighting
mynode.getMaterial(0).SetShininess(20.0) '  set size of specular highlights

for an implemented example see sample 13.RenderToTexture. hope that helps you out :)


ckob(Posted 2005) [#3]
thanks alot :) im actually sticking with directx drivers anyways. Thanks again