CreateLensFlareEffect
Posted: Fri Apr 11, 2014 2:59 pm
				
				Hi!
My LensFlares is under terrain and over the objects.
 
Image
http://radium3dengine.com/img/shot_2014 ... -43-31.jpg
Typical material
What's wrong I do? Please help. Terrain is not a system terrain. This is a mesh.
Oops... Sorry... Please move this topic to 3D Programming. My brain is broken totay.
			My LensFlares is under terrain and over the objects.
Image
http://radium3dengine.com/img/shot_2014 ... -43-31.jpg
Code: Select all
CreateNode(5, 0, 100, 0)
GetScriptMaterial(5, "PE/lensflare")
GetScriptMaterial(6, "PE/ringflare")
GetScriptMaterial(7, "PE/ringflare2")
CreateLensFlareEffect(5, CameraID(0), NodeID(5), 20, 50, MaterialID(5), MaterialID(6), MaterialID(7))
Code: Select all
material PE/lensflare
{
	technique
	{
		pass
		{
			lighting off
			depth_write off
			scene_blend add
			texture_unit
			{
				texture flare.png
			}
		}
	}
}
Oops... Sorry... Please move this topic to 3D Programming. My brain is broken totay.

