I was asked to post the source. It's set up to work within fx composer: #define LIGHT_COORDS "World" //----------------- // un-tweaks //----------------- matrix WorldVP : WorldViewProjection ; matrix World : World ; //----------------- // tweaks //----------------- float3 LightPosition : POSITION < string Object = "PointLight0" ; string UIName = "Lamp 0 Position" ; string Space = ( LIGHT_COORDS ); > = { 150.0f , 150.0f , 0.0f }; float4 LightColor : COLOR < string UIName = "Lamp 0" ; string Object = "Pointlight0" ; string UIWidget = "Color" ; > = { 1.0f , 1.0f , 1.0f , 1.0f }; float LightRange < string UIWidget = "slider" ; float UIMin = 10.0 ; float UIMax = 1000.0 ; float UIStep = 5.0 ; string UIName = "LightRange" ; > = 250.0f ; float4 Ambient < string UIName = "Ambient" ; string UIWidget = "Color...