client.lua
shader = dxCreateShader("shader.fx", 0, 0, false, "vehicle")
texture = dxCreateTexture("theme.jpg")
dxSetShaderValue(shader, "CarSkin", texture)
engineApplyShaderToWorldTexture(shader, "vehiclegrunge256")
shader.fx
texture CarSkin;
technique simple {
pass P0 {
Texture[0] = CarSkin;
}
}