Hi there,

Im trying to make a working shader with FX files. (Im using ID3DXEffect)...
My question:
How can I set textures with my shader without using ID3DXEffect.SetTexture?
I want to use Device.SetTexture.
And how can I pass light information to my shader? My maps can have 0 to more than 100000 lights. How can I setup my shaders/application to use that informatino correctly

Help me plz!!!

(Im able to load shaders with a valid technique)

EDIT: And how can I retreive the current view/projection matrices within my shader?