Hey all,
I am trying to write a scripted material with maxscript. But I am having problems with passing the light position to the shader.
In the shader itself the position is a float4.
I tried to do it this way
on ddl_Light1Pos selected item do
(
local temp = getNodeByName ddl_Light2Pos.selected
delegate.light1_Position = temp.position
)
I then get the error that it has to be of a value of integer. How can that possibly be if the variable in the shader is a float4
I already tried a lot of other stuff but I am not getting some good results. I researched the information on the wiki but I am not finding the way how the position of the light is passed.
Is there a specific way to do this?
Greetings
Nysuatro