Reputation: 4233
I am lighting a plane with a spot light in Ogre3D. However, the edge on the hotspot shows zigzag effect. It looks like the shading on the plane is done at every vertex without any interpolation.
The wireframe rendering result is shown below:
How can I enable per-pixel lighting in Ogre3D, which can smooth out the hotspot's boundary?
Upvotes: 3
Views: 710
Reputation: 3669
In the current Ogre versions (so below 2.0), there are two options:
Manually create a Cg/HLSL/GLSL shader and use it in the material for the ground plane.
Use Ogre's RTSS (Real-Time Shading System). Its architecture and usage is explained in this wiki article.
Upvotes: 3