In Ogre, i'm projecting a decal onto a sphere. However, the decal shines straight through the sphere and projects another decal onto the opposite side! How do I stop that?
material planets/Planet_Earth {
technique {
pass {
texture_unit {
texture earth_surface.png
filtering trilinear
scale 1 1
}
}
}
}
I'm afraid neither of the below answers are working. I have tried every shadow setting ald explored blender's texture settings, but nothing seems to work. The decal just renders both sides! It even happens in Ogre Tutorial 6! Any possible suggestion appreciated!
Note: I'm editing someone elses code, and just discovered that it's not a mesh, the sphere is being created in the code :O sowwy :(
I just couldn't get it to work, as there is no uv map. I gave up and used a .mesh that looked like my decal and positioned it on the surface of the sphere instead. Sorry guys.